home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Apple / Apple II TNs(Text).cpt / Apple II TNs(Text) / IIGS / TN.IIGS.035 < prev    next >
MacBinary  |  1989-11-15  |  36.1 KB  |  [TEXT/pdos]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: TN.IIGS.035

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Nov 15 12:34:51 1989, modified Wed Nov 15 12:34:51 1989, creator Apple ProDOS file system, type ASCII, 36368 bytes "TN.IIGS.035" , at 0x8e90 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[pdos]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2e 49 49 47 | 53 2e 30 33 35 00 00 00 |..TN.IIG|S.035...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 70 64 6f | 73 01 00 00 00 00 00 00 |.TEXTpdo|s.......|
|00000050| 00 00 00 00 00 8e 10 00 | 00 01 7e a1 87 4e bb a1 |........|..~..N..|
|00000060| 87 4e bb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c5 2b 00 00 |........|.....+..|
|00000080| 41 70 70 6c 65 20 49 49 | 0d 54 65 63 68 6e 69 63 |Apple II|.Technic|
|00000090| 61 6c 20 4e 6f 74 65 73 | 0d 5f 5f 5f 5f 5f 5f 5f |al Notes|._______|
|000000a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 0d 20 | 20 20 20 20 20 20 20 20 |______. | |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 44 65 76 65 6c 6f 70 | | Develop|
|00000120| 65 72 20 54 65 63 68 6e | 69 63 61 6c 20 53 75 70 |er Techn|ical Sup|
|00000130| 70 6f 72 74 0d 41 70 70 | 6c 65 20 49 49 47 53 0d |port.App|le IIGS.|
|00000140| 23 33 35 3a 20 20 20 20 | 50 72 69 6e 74 65 72 20 |#35: |Printer |
|00000150| 44 72 69 76 65 72 20 53 | 70 65 63 69 66 69 63 61 |Driver S|pecifica|
|00000160| 74 69 6f 6e 73 0d 0d 52 | 65 76 69 73 65 64 20 62 |tions..R|evised b|
|00000170| 79 3a 20 20 20 20 4d 61 | 74 74 20 44 65 61 74 68 |y: Ma|tt Death|
|00000180| 65 72 61 67 65 20 26 20 | 53 75 6b 69 20 4c 65 65 |erage & |Suki Lee|
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001a0| 20 20 20 20 20 20 53 65 | 70 74 65 6d 62 65 72 20 | Se|ptember |
|000001b0| 31 39 38 39 0d 57 72 69 | 74 74 65 6e 20 62 79 3a |1989.Wri|tten by:|
|000001c0| 20 20 20 20 44 61 6e 20 | 48 69 74 63 68 65 6e 73 | Dan |Hitchens|
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 4d 61 79 20 31 39 | | May 19|
|00000200| 38 38 0d 0d 54 68 69 73 | 20 54 65 63 68 6e 69 63 |88..This| Technic|
|00000210| 61 6c 20 4e 6f 74 65 20 | 64 65 73 63 72 69 62 65 |al Note |describe|
|00000220| 73 20 74 68 65 20 72 6f | 75 74 69 6e 65 73 20 61 |s the ro|utines a|
|00000230| 6e 64 20 69 6e 74 65 72 | 6e 61 6c 20 73 74 72 75 |nd inter|nal stru|
|00000240| 63 74 75 72 65 73 20 6e | 65 65 64 65 64 20 74 6f |ctures n|eeded to|
|00000250| 20 0d 64 65 73 69 67 6e | 20 61 20 70 72 69 6e 74 | .design| a print|
|00000260| 65 72 20 64 72 69 76 65 | 72 20 66 6f 72 20 74 68 |er drive|r for th|
|00000270| 65 20 41 70 70 6c 65 20 | 49 49 47 53 20 73 79 73 |e Apple |IIGS sys|
|00000280| 74 65 6d 2c 20 61 6e 64 | 20 79 6f 75 20 73 68 6f |tem, and| you sho|
|00000290| 75 6c 64 20 72 65 66 65 | 72 65 6e 63 65 20 69 74 |uld refe|rence it|
|000002a0| 20 0d 69 6e 20 63 6f 6e | 6a 75 6e 63 74 69 6f 6e | .in con|junction|
|000002b0| 20 77 69 74 68 20 74 68 | 65 20 41 70 70 6c 65 20 | with th|e Apple |
|000002c0| 49 49 47 53 20 54 6f 6f | 6c 62 6f 78 20 52 65 66 |IIGS Too|lbox Ref|
|000002d0| 65 72 65 6e 63 65 20 6d | 61 6e 75 61 6c 73 2e 20 |erence m|anuals. |
|000002e0| 20 41 6e 20 6f 76 65 72 | 76 69 65 77 20 61 6e 64 | An over|view and|
|000002f0| 20 0d 61 73 73 6f 63 69 | 61 74 65 64 20 70 61 72 | .associ|ated par|
|00000300| 61 6d 65 74 65 72 73 20 | 66 6f 72 20 65 61 63 68 |ameters |for each|
|00000310| 20 6f 66 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | of the |printer |
|00000320| 64 72 69 76 65 72 20 72 | 6f 75 74 69 6e 65 73 20 |driver r|outines |
|00000330| 61 72 65 20 69 6e 20 74 | 68 65 20 50 72 69 6e 74 |are in t|he Print|
|00000340| 20 0d 4d 61 6e 61 67 65 | 72 20 63 68 61 70 74 65 | .Manage|r chapte|
|00000350| 72 2c 20 61 6e 64 20 79 | 6f 75 20 73 68 6f 75 6c |r, and y|ou shoul|
|00000360| 64 20 72 65 66 65 72 65 | 6e 63 65 20 74 68 65 73 |d refere|nce thes|
|00000370| 65 20 66 6f 72 20 61 20 | 63 6f 6d 70 6c 65 74 65 |e for a |complete|
|00000380| 20 70 69 63 74 75 72 65 | 2e 0d 43 68 61 6e 67 65 | picture|..Change|
|00000390| 64 20 73 69 6e 63 65 20 | 4d 61 72 63 68 20 31 39 |d since |March 19|
|000003a0| 38 39 3a 20 20 41 64 64 | 65 64 20 53 79 73 74 65 |89: Add|ed Syste|
|000003b0| 6d 20 53 6f 66 74 77 61 | 72 65 20 35 2e 30 20 63 |m Softwa|re 5.0 c|
|000003c0| 61 6c 6c 73 20 61 6e 64 | 20 74 68 65 20 6e 65 77 |alls and| the new|
|000003d0| 20 0d 64 72 69 76 65 72 | 20 73 74 72 75 63 74 75 | .driver| structu|
|000003e0| 72 65 2e 0d 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |re..____|________|
|000003f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000400| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000410| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000420| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000430| 5f 0d 0d 0d 50 72 69 6e | 74 69 6e 67 20 4d 6f 64 |_...Prin|ting Mod|
|00000440| 65 73 0d 0d 54 68 65 72 | 65 20 61 72 65 20 74 77 |es..Ther|e are tw|
|00000450| 6f 20 70 72 69 6e 74 69 | 6e 67 20 6d 6f 64 65 73 |o printi|ng modes|
|00000460| 3a 20 20 69 6d 6d 65 64 | 69 61 74 65 20 61 6e 64 |: immed|iate and|
|00000470| 20 64 65 66 65 72 72 65 | 64 2e 0d 0d 20 20 6f 20 | deferre|d... o |
|00000480| 20 49 6d 6d 65 64 69 61 | 74 65 20 6d 6f 64 65 20 | Immedia|te mode |
|00000490| 28 61 6c 73 6f 20 6b 6e | 6f 77 6e 20 61 73 20 64 |(also kn|own as d|
|000004a0| 72 61 66 74 20 6d 6f 64 | 65 29 2c 20 75 73 65 73 |raft mod|e), uses|
|000004b0| 20 74 68 65 20 74 65 63 | 68 6e 69 71 75 65 20 6f | the tec|hnique o|
|000004c0| 66 20 0d 20 20 20 20 20 | 70 72 69 6e 74 69 6e 67 |f . |printing|
|000004d0| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 2e 20 20 41 | immedia|tely. A|
|000004e0| 73 20 79 6f 75 20 6d 61 | 6b 65 20 51 75 69 63 6b |s you ma|ke Quick|
|000004f0| 44 72 61 77 20 49 49 20 | 63 61 6c 6c 73 2c 20 79 |Draw II |calls, y|
|00000500| 6f 75 20 0d 20 20 20 20 | 20 69 6d 6d 65 64 69 61 |ou . | immedia|
|00000510| 74 65 6c 79 20 67 65 6e | 65 72 61 74 65 20 63 6f |tely gen|erate co|
|00000520| 6d 6d 61 6e 64 73 20 77 | 68 69 63 68 20 63 61 75 |mmands w|hich cau|
|00000530| 73 65 20 70 72 69 6e 74 | 69 6e 67 20 74 6f 20 6f |se print|ing to o|
|00000540| 63 63 75 72 2e 20 20 54 | 68 69 73 20 0d 20 20 20 |ccur. T|his . |
|00000550| 20 20 6d 6f 64 65 20 69 | 73 20 74 68 65 20 66 61 | mode i|s the fa|
|00000560| 73 74 65 73 74 20 66 6f | 72 6d 20 6f 66 20 70 72 |stest fo|rm of pr|
|00000570| 69 6e 74 69 6e 67 2c 20 | 62 75 74 20 69 74 20 63 |inting, |but it c|
|00000580| 61 6e 20 6f 6e 6c 79 20 | 70 72 69 6e 74 20 0d 20 |an only |print . |
|00000590| 20 20 20 20 63 68 61 72 | 61 63 74 65 72 73 20 69 | char|acters i|
|000005a0| 6e 20 74 68 65 20 70 72 | 69 6e 74 65 72 27 73 20 |n the pr|inter's |
|000005b0| 6e 61 74 69 76 65 20 6d | 6f 64 65 2e 20 20 28 48 |native m|ode. (H|
|000005c0| 6f 77 65 76 65 72 2c 20 | 74 68 65 20 0d 20 20 20 |owever, |the . |
|000005d0| 20 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 74 72 | LaserW|riter tr|
|000005e0| 61 6e 73 6c 61 74 65 73 | 20 74 68 65 20 51 75 69 |anslates| the Qui|
|000005f0| 63 6b 44 72 61 77 20 49 | 49 20 63 61 6c 6c 73 20 |ckDraw I|I calls |
|00000600| 69 6e 74 6f 20 50 6f 73 | 74 53 63 72 69 70 74 20 |into Pos|tScript |
|00000610| 0d 20 20 20 20 20 63 61 | 6c 6c 73 20 77 68 69 63 |. ca|lls whic|
|00000620| 68 20 63 61 6e 20 70 72 | 6f 64 75 63 65 20 68 69 |h can pr|oduce hi|
|00000630| 67 68 2d 71 75 61 6c 69 | 74 79 20 70 69 78 65 6c |gh-quali|ty pixel|
|00000640| 6d 61 70 20 69 6d 61 67 | 65 73 2e 29 0d 0d 20 20 |map imag|es.).. |
|00000650| 6f 20 20 44 65 66 65 72 | 72 65 64 20 6d 6f 64 65 |o Defer|red mode|
|00000660| 20 28 73 6f 6d 65 74 69 | 6d 65 73 20 72 65 66 65 | (someti|mes refe|
|00000670| 72 72 65 64 20 74 6f 20 | 61 73 20 73 70 6f 6f 6c |rred to |as spool|
|00000680| 69 6e 67 29 2c 20 75 73 | 65 73 20 74 68 65 20 0d |ing), us|es the .|
|00000690| 20 20 20 20 20 74 65 63 | 68 6e 69 71 75 65 20 6f | tec|hnique o|
|000006a0| 66 20 63 61 70 74 75 72 | 69 6e 67 20 74 68 65 20 |f captur|ing the |
|000006b0| 51 75 69 63 6b 44 72 61 | 77 20 49 49 20 63 61 6c |QuickDra|w II cal|
|000006c0| 6c 73 20 66 6f 72 20 65 | 61 63 68 20 70 61 67 65 |ls for e|ach page|
|000006d0| 20 69 6e 20 61 20 0d 20 | 20 20 20 20 70 69 63 74 | in a . | pict|
|000006e0| 75 72 65 20 66 69 6c 65 | 20 61 6e 64 20 70 6c 61 |ure file| and pla|
|000006f0| 79 73 20 74 68 65 6d 20 | 62 61 63 6b 20 61 74 20 |ys them |back at |
|00000700| 61 20 6c 61 74 65 72 20 | 74 69 6d 65 2e 20 20 54 |a later |time. T|
|00000710| 6f 20 70 72 6f 64 75 63 | 65 20 0d 20 20 20 20 20 |o produc|e . |
|00000720| 68 69 67 68 2d 71 75 61 | 6c 69 74 79 20 70 69 78 |high-qua|lity pix|
|00000730| 65 6c 6d 61 70 20 69 6d | 61 67 65 73 2c 20 79 6f |elmap im|ages, yo|
|00000740| 75 20 6d 75 73 74 20 75 | 73 65 20 64 65 66 65 72 |u must u|se defer|
|00000750| 72 65 64 20 6d 6f 64 65 | 20 62 65 63 61 75 73 65 |red mode| because|
|00000760| 20 0d 20 20 20 20 20 6f | 66 20 74 68 65 20 6d 65 | . o|f the me|
|00000770| 6d 6f 72 79 20 63 6f 6e | 73 74 72 61 69 6e 74 20 |mory con|straint |
|00000780| 6f 66 20 6e 6f 74 20 62 | 65 69 6e 67 20 61 62 6c |of not b|eing abl|
|00000790| 65 20 74 6f 20 64 72 61 | 77 20 61 20 63 6f 6d 70 |e to dra|w a comp|
|000007a0| 6c 65 74 65 20 70 61 67 | 65 20 0d 20 20 20 20 20 |lete pag|e . |
|000007b0| 69 6e 20 6d 65 6d 6f 72 | 79 20 61 74 20 6f 6e 65 |in memor|y at one|
|000007c0| 20 74 69 6d 65 2e 20 20 | 44 75 65 20 74 6f 20 74 | time. |Due to t|
|000007d0| 68 69 73 20 6c 69 6d 69 | 74 61 74 69 6f 6e 2c 20 |his limi|tation, |
|000007e0| 77 65 20 64 72 61 77 20 | 61 20 62 61 6e 64 20 28 |we draw |a band (|
|000007f0| 61 20 0d 20 20 20 20 20 | 70 61 72 74 69 61 6c 20 |a . |partial |
|00000800| 70 61 67 65 29 20 61 74 | 20 61 20 74 69 6d 65 2e |page) at| a time.|
|00000810| 20 20 57 65 20 63 72 65 | 61 74 65 20 61 20 47 72 | We cre|ate a Gr|
|00000820| 61 66 50 6f 72 74 20 77 | 68 69 63 68 20 63 6f 72 |afPort w|hich cor|
|00000830| 72 65 73 70 6f 6e 64 73 | 20 0d 20 20 20 20 20 74 |responds| . t|
|00000840| 6f 20 74 68 65 20 62 61 | 6e 64 20 61 6e 64 20 70 |o the ba|nd and p|
|00000850| 6c 61 79 20 74 68 65 20 | 70 69 63 74 75 72 65 20 |lay the |picture |
|00000860| 66 69 6c 65 20 62 61 63 | 6b 2c 20 74 68 75 73 20 |file bac|k, thus |
|00000870| 63 61 75 73 69 6e 67 20 | 74 68 65 20 73 61 76 65 |causing |the save|
|00000880| 64 20 0d 20 20 20 20 20 | 63 6f 6d 6d 61 6e 64 73 |d . |commands|
|00000890| 20 74 6f 20 64 72 61 77 | 20 6f 6e 6c 79 20 74 68 | to draw| only th|
|000008a0| 65 20 69 6d 61 67 65 73 | 20 77 68 69 63 68 20 66 |e images| which f|
|000008b0| 61 6c 6c 20 77 69 74 68 | 69 6e 20 74 68 65 20 62 |all with|in the b|
|000008c0| 61 6e 64 2e 20 20 4f 6e | 63 65 20 0d 20 20 20 20 |and. On|ce . |
|000008d0| 20 74 68 65 20 70 69 78 | 65 6c 20 69 6d 61 67 65 | the pix|el image|
|000008e0| 20 66 6f 72 20 74 68 65 | 20 62 61 6e 64 20 69 73 | for the| band is|
|000008f0| 20 67 65 6e 65 72 61 74 | 65 64 2c 20 77 65 20 63 | generat|ed, we c|
|00000900| 61 6e 20 73 65 6e 64 20 | 69 74 20 74 6f 20 74 68 |an send |it to th|
|00000910| 65 20 0d 20 20 20 20 20 | 70 72 69 6e 74 65 72 20 |e . |printer |
|00000920| 6f 6e 65 20 70 69 78 65 | 6c 20 61 74 20 61 20 74 |one pixe|l at a t|
|00000930| 69 6d 65 2e 0d 0d 0d 46 | 69 6c 65 20 53 74 72 75 |ime....F|ile Stru|
|00000940| 63 74 75 72 65 0d 0d 54 | 68 65 20 75 73 65 72 20 |cture..T|he user |
|00000950| 63 61 6e 20 69 6e 73 74 | 61 6c 6c 20 6e 65 77 20 |can inst|all new |
|00000960| 70 72 69 6e 74 65 72 20 | 64 72 69 76 65 72 73 20 |printer |drivers |
|00000970| 69 6e 74 6f 20 74 68 65 | 20 73 79 73 74 65 6d 20 |into the| system |
|00000980| 62 79 20 63 6f 70 79 69 | 6e 67 20 61 20 70 72 69 |by copyi|ng a pri|
|00000990| 6e 74 65 72 20 0d 64 72 | 69 76 65 72 20 66 69 6c |nter .dr|iver fil|
|000009a0| 65 20 69 6e 74 6f 20 61 | 20 73 75 62 64 69 72 65 |e into a| subdire|
|000009b0| 63 74 6f 72 79 20 63 61 | 6c 6c 65 64 20 44 52 49 |ctory ca|lled DRI|
|000009c0| 56 45 52 53 20 77 69 74 | 68 69 6e 20 74 68 65 20 |VERS wit|hin the |
|000009d0| 53 59 53 54 45 4d 20 73 | 75 62 64 69 72 65 63 74 |SYSTEM s|ubdirect|
|000009e0| 6f 72 79 2e 20 20 0d 54 | 68 65 20 70 72 69 6e 74 |ory. .T|he print|
|000009f0| 65 72 20 64 72 69 76 65 | 72 20 66 69 6c 65 20 6d |er drive|r file m|
|00000a00| 75 73 74 20 62 65 20 6f | 66 20 74 79 70 65 20 24 |ust be o|f type $|
|00000a10| 42 42 20 61 6e 64 20 68 | 61 76 65 20 61 6e 20 61 |BB and h|ave an a|
|00000a20| 75 78 69 6c 69 61 72 79 | 20 74 79 70 65 20 6f 66 |uxiliary| type of|
|00000a30| 20 0d 24 30 30 30 31 2e | 0d 0d 0d 50 72 69 6e 74 | .$0001.|...Print|
|00000a40| 20 44 72 69 76 65 72 20 | 43 61 6c 6c 73 0d 0d 41 | Driver |Calls..A|
|00000a50| 20 70 72 69 6e 74 65 72 | 20 64 72 69 76 65 72 20 | printer| driver |
|00000a60| 6d 75 73 74 20 73 75 70 | 70 6f 72 74 20 74 68 65 |must sup|port the|
|00000a70| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 61 6c 6c 73 | followi|ng calls|
|00000a80| 3a 0d 0d 20 20 20 20 50 | 72 44 65 66 61 75 6c 74 |:.. P|rDefault|
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 | | $|
|00000aa0| 30 39 31 33 20 20 20 20 | 53 65 74 73 20 70 72 69 |0913 |Sets pri|
|00000ab0| 6e 74 20 72 65 63 6f 72 | 64 20 74 6f 20 64 65 66 |nt recor|d to def|
|00000ac0| 61 75 6c 74 0d 20 20 20 | 20 50 72 56 61 6c 69 64 |ault. | PrValid|
|00000ad0| 61 74 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ate | |
|00000ae0| 20 24 30 41 31 33 20 20 | 20 20 56 61 6c 69 64 61 | $0A13 | Valida|
|00000af0| 74 65 73 20 70 72 69 6e | 74 20 72 65 63 6f 72 64 |tes prin|t record|
|00000b00| 0d 20 20 20 20 50 72 53 | 74 6c 44 69 61 6c 6f 67 |. PrS|tlDialog|
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 30 42 | | $0B|
|00000b20| 31 33 20 20 20 20 50 65 | 72 66 6f 72 6d 73 20 61 |13 Pe|rforms a|
|00000b30| 20 73 74 79 6c 65 20 64 | 69 61 6c 6f 67 0d 20 20 | style d|ialog. |
|00000b40| 20 20 50 72 4a 6f 62 44 | 69 61 6c 6f 67 20 20 20 | PrJobD|ialog |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 24 30 43 31 33 20 | | $0C13 |
|00000b60| 20 20 20 50 65 72 66 6f | 72 6d 73 20 61 20 6a 6f | Perfo|rms a jo|
|00000b70| 62 20 64 69 61 6c 6f 67 | 0d 20 20 20 20 50 72 50 |b dialog|. PrP|
|00000b80| 69 78 65 6c 4d 61 70 20 | 20 20 20 20 20 20 20 20 |ixelMap | |
|00000b90| 20 20 20 20 20 24 30 44 | 31 33 20 20 20 20 50 72 | $0D|13 Pr|
|00000ba0| 69 6e 74 73 20 61 20 70 | 69 78 65 6c 6d 61 70 0d |ints a p|ixelmap.|
|00000bb0| 20 20 20 20 50 72 4f 70 | 65 6e 44 6f 63 20 20 20 | PrOp|enDoc |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 24 30 45 31 | | $0E1|
|00000bd0| 33 20 20 20 20 4f 70 65 | 6e 73 20 74 68 65 20 64 |3 Ope|ns the d|
|00000be0| 6f 63 75 6d 65 6e 74 0d | 20 20 20 20 50 72 43 6c |ocument.| PrCl|
|00000bf0| 6f 73 65 44 6f 63 20 20 | 20 20 20 20 20 20 20 20 |oseDoc | |
|00000c00| 20 20 20 20 24 30 46 31 | 33 20 20 20 20 43 6c 6f | $0F1|3 Clo|
|00000c10| 73 65 73 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |ses the |document|
|00000c20| 0d 20 20 20 20 50 72 4f | 70 65 6e 50 61 67 65 20 |. PrO|penPage |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 31 30 | | $10|
|00000c40| 31 33 20 20 20 20 4f 70 | 65 6e 73 20 61 20 70 61 |13 Op|ens a pa|
|00000c50| 67 65 0d 20 20 20 20 50 | 72 43 6c 6f 73 65 50 61 |ge. P|rClosePa|
|00000c60| 67 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 |ge | $|
|00000c70| 31 31 31 33 20 20 20 20 | 43 6c 6f 73 65 73 20 61 |1113 |Closes a|
|00000c80| 20 70 61 67 65 0d 20 20 | 20 20 50 72 50 69 63 46 | page. | PrPicF|
|00000c90| 69 6c 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ile | |
|00000ca0| 20 20 24 31 32 31 33 20 | 20 20 20 50 72 69 6e 74 | $1213 | Print|
|00000cb0| 73 20 61 20 70 69 63 74 | 75 72 65 20 66 69 6c 65 |s a pict|ure file|
|00000cc0| 0d 20 20 20 20 2d 2d 52 | 45 53 45 52 56 45 44 2d |. --R|ESERVED-|
|00000cd0| 2d 20 20 20 20 20 20 20 | 20 20 20 20 20 24 31 33 |- | $13|
|00000ce0| 31 33 0d 20 20 20 20 50 | 72 45 72 72 6f 72 20 20 |13. P|rError |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 | | $|
|00000d00| 31 34 31 33 20 20 20 20 | 47 65 74 73 20 74 68 65 |1413 |Gets the|
|00000d10| 20 65 72 72 6f 72 20 76 | 61 6c 75 65 0d 20 20 20 | error v|alue. |
|00000d20| 20 50 72 53 65 74 45 72 | 72 6f 72 20 20 20 20 20 | PrSetEr|ror |
|00000d30| 20 20 20 20 20 20 20 20 | 20 24 31 35 31 33 20 20 | | $1513 |
|00000d40| 20 20 53 65 74 73 20 74 | 68 65 20 65 72 72 6f 72 | Sets t|he error|
|00000d50| 20 76 61 6c 75 65 0d 20 | 20 20 20 47 65 74 44 65 | value. | GetDe|
|00000d60| 76 69 63 65 4e 61 6d 65 | 20 20 20 20 20 20 20 20 |viceName| |
|00000d70| 20 20 20 24 31 37 31 33 | 20 20 20 20 47 65 74 73 | $1713| Gets|
|00000d80| 20 64 65 76 69 63 65 27 | 73 20 6e 61 6d 65 0d 20 | device'|s name. |
|00000d90| 20 20 20 50 72 44 72 69 | 76 65 72 56 65 72 20 20 | PrDri|verVer |
|00000da0| 20 20 20 20 20 20 20 20 | 20 20 20 24 32 33 31 33 | | $2313|
|00000db0| 20 20 20 20 47 65 74 73 | 20 69 6e 73 74 61 6c 6c | Gets| install|
|00000dc0| 65 64 20 64 72 69 76 65 | 72 20 76 65 72 73 69 6f |ed drive|r versio|
|00000dd0| 6e 0d 0d 50 72 69 6e 74 | 65 72 20 64 72 69 76 65 |n..Print|er drive|
|00000de0| 72 73 20 6d 61 79 20 73 | 75 70 70 6f 72 74 20 74 |rs may s|upport t|
|00000df0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 61 6c |he follo|wing cal|
|00000e00| 6c 73 20 69 66 20 74 68 | 65 79 20 75 73 65 20 74 |ls if th|ey use t|
|00000e10| 68 65 20 6e 65 77 20 64 | 72 69 76 65 72 20 0d 73 |he new d|river .s|
|00000e20| 74 72 75 63 74 75 72 65 | 20 6f 75 74 6c 69 6e 65 |tructure| outline|
|00000e30| 64 20 62 65 6c 6f 77 3a | 0d 0d 20 20 20 20 50 72 |d below:|.. Pr|
|00000e40| 47 65 74 50 72 69 6e 74 | 65 72 53 70 65 63 73 20 |GetPrint|erSpecs |
|00000e50| 20 20 20 20 20 20 24 31 | 38 31 33 20 20 20 20 52 | $1|813 R|
|00000e60| 65 74 75 72 6e 73 20 70 | 72 69 6e 74 65 72 20 74 |eturns p|rinter t|
|00000e70| 79 70 65 20 61 6e 64 20 | 0d 20 20 20 20 20 20 20 |ype and |. |
|00000e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 68 | | ch|
|00000ea0| 61 72 61 63 74 65 72 69 | 73 74 69 63 73 0d 20 20 |aracteri|stics. |
|00000eb0| 20 20 50 72 47 65 74 50 | 61 67 65 4f 72 69 65 6e | PrGetP|ageOrien|
|00000ec0| 74 61 74 69 6f 6e 20 20 | 20 20 24 33 38 31 33 20 |tation | $3813 |
|00000ed0| 20 20 20 52 65 74 75 72 | 6e 73 20 70 61 67 65 20 | Retur|ns page |
|00000ee0| 6f 72 69 65 6e 74 61 74 | 69 6f 6e 0d 0d 0d 50 72 |orientat|ion...Pr|
|00000ef0| 69 6e 74 20 44 72 69 76 | 65 72 20 45 6e 74 72 79 |int Driv|er Entry|
|00000f00| 0d 0d 20 20 6f 20 20 46 | 6f 72 20 6f 6c 64 65 72 |.. o F|or older|
|00000f10| 20 64 72 69 76 65 72 73 | 2c 20 65 6e 74 72 79 20 | drivers|, entry |
|00000f20| 69 73 20 61 74 20 74 68 | 65 20 66 69 72 73 74 20 |is at th|e first |
|00000f30| 62 79 74 65 20 28 6e 6f | 20 6f 66 66 73 65 74 29 |byte (no| offset)|
|00000f40| 2e 20 20 46 6f 72 20 6e | 65 77 65 72 20 0d 20 20 |. For n|ewer . |
|00000f50| 20 20 20 28 50 72 69 6e | 74 20 4d 61 6e 61 67 65 | (Prin|t Manage|
|00000f60| 72 20 33 2e 30 20 61 6e | 64 20 6c 61 74 65 72 29 |r 3.0 an|d later)|
|00000f70| 20 64 72 69 76 65 72 73 | 2c 20 74 68 65 20 66 69 | drivers|, the fi|
|00000f80| 72 73 74 20 77 6f 72 64 | 20 69 73 20 24 30 30 30 |rst word| is $000|
|00000f90| 30 2c 20 69 6e 64 69 63 | 61 74 69 6e 67 20 0d 20 |0, indic|ating . |
|00000fa0| 20 20 20 20 61 20 6e 65 | 77 20 73 74 79 6c 65 20 | a ne|w style |
|00000fb0| 64 72 69 76 65 72 2e 20 | 20 54 68 65 20 6e 65 78 |driver. | The nex|
|00000fc0| 74 20 77 6f 72 64 20 69 | 73 20 61 20 63 6f 75 6e |t word i|s a coun|
|00000fd0| 74 20 6f 66 20 68 6f 77 | 20 6d 61 6e 79 20 63 61 |t of how| many ca|
|00000fe0| 6c 6c 73 20 74 68 69 73 | 20 64 72 69 76 65 72 20 |lls this| driver |
|00000ff0| 0d 20 20 20 20 20 73 75 | 70 70 6f 72 74 73 2e 20 |. su|pports. |
|00001000| 20 41 6c 6c 20 64 72 69 | 76 65 72 73 20 6d 75 73 | All dri|vers mus|
|00001010| 74 20 73 75 70 70 6f 72 | 74 20 74 68 65 20 6d 69 |t suppor|t the mi|
|00001020| 6e 69 6d 75 6d 20 63 61 | 6c 6c 20 73 65 74 2e 20 |nimum ca|ll set. |
|00001030| 20 41 64 64 69 74 69 6f | 6e 61 6c 20 0d 20 20 20 | Additio|nal . |
|00001040| 20 20 63 61 6c 6c 73 20 | 6d 75 73 74 20 62 65 20 | calls |must be |
|00001050| 73 75 70 70 6f 72 74 65 | 64 20 69 6e 20 74 68 65 |supporte|d in the|
|00001060| 20 73 65 71 75 65 6e 63 | 65 20 6c 69 73 74 65 64 | sequenc|e listed|
|00001070| 20 28 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 69 | (for ex|ample, i|
|00001080| 66 20 61 20 64 72 69 76 | 65 72 20 0d 20 20 20 20 |f a driv|er . |
|00001090| 20 73 75 70 70 6f 72 74 | 73 20 50 72 47 65 74 50 | support|s PrGetP|
|000010a0| 61 67 65 4f 72 69 65 6e | 74 61 74 69 6f 6e 2c 20 |ageOrien|tation, |
|000010b0| 69 74 20 6d 75 73 74 20 | 61 6c 73 6f 20 73 75 70 |it must |also sup|
|000010c0| 70 6f 72 74 20 50 72 47 | 65 74 50 72 69 6e 74 65 |port PrG|etPrinte|
|000010d0| 72 53 70 65 63 73 29 2e | 0d 20 20 6f 20 20 54 68 |rSpecs).|. o Th|
|000010e0| 65 20 63 6f 6e 74 65 6e | 74 20 6f 66 20 74 68 65 |e conten|t of the|
|000010f0| 20 78 20 72 65 67 69 73 | 74 65 72 20 69 73 20 63 | x regis|ter is c|
|00001100| 61 6c 63 75 6c 61 74 65 | 64 20 62 65 66 6f 72 65 |alculate|d before|
|00001110| 68 61 6e 64 20 66 6f 72 | 20 75 73 65 20 61 73 20 |hand for| use as |
|00001120| 61 6e 20 69 6e 64 65 78 | 20 0d 20 20 20 20 20 74 |an index| . t|
|00001130| 6f 20 74 68 65 20 63 6f | 72 72 65 63 74 20 72 6f |o the co|rrect ro|
|00001140| 75 74 69 6e 65 20 28 73 | 65 65 20 74 68 65 20 65 |utine (s|ee the e|
|00001150| 78 61 6d 70 6c 65 20 61 | 6e 64 20 6e 6f 74 65 20 |xample a|nd note |
|00001160| 74 68 65 20 73 70 65 63 | 69 66 69 63 20 6f 72 64 |the spec|ific ord|
|00001170| 65 72 69 6e 67 20 6f 66 | 20 0d 20 20 20 20 20 74 |ering of| . t|
|00001180| 68 65 20 72 6f 75 74 69 | 6e 65 73 29 2e 0d 20 20 |he routi|nes).. |
|00001190| 6f 20 20 54 68 65 72 65 | 20 61 72 65 20 74 77 6f |o There| are two|
|000011a0| 20 6c 6f 6e 67 20 72 65 | 74 75 72 6e 20 61 64 64 | long re|turn add|
|000011b0| 72 65 73 73 65 73 20 28 | 73 69 78 20 62 79 74 65 |resses (|six byte|
|000011c0| 73 29 20 74 68 61 74 20 | 68 61 76 65 20 62 65 65 |s) that |have bee|
|000011d0| 6e 20 70 75 73 68 65 64 | 20 6f 6e 74 6f 20 0d 20 |n pushed| onto . |
|000011e0| 20 20 20 20 74 68 65 20 | 73 74 61 63 6b 2e 20 20 | the |stack. |
|000011f0| 28 59 6f 75 20 6d 75 73 | 74 20 74 61 6b 65 20 74 |(You mus|t take t|
|00001200| 68 65 73 65 20 61 64 64 | 72 65 73 73 65 73 20 69 |hese add|resses i|
|00001210| 6e 74 6f 20 61 63 63 6f | 75 6e 74 20 74 6f 20 61 |nto acco|unt to a|
|00001220| 63 63 65 73 73 20 74 68 | 65 20 0d 20 20 20 20 20 |ccess th|e . |
|00001230| 70 61 72 61 6d 65 74 65 | 72 73 20 61 6e 64 20 74 |paramete|rs and t|
|00001240| 6f 20 72 65 74 75 72 6e | 20 63 6f 72 72 65 63 74 |o return| correct|
|00001250| 6c 79 2e 29 0d 0d 45 78 | 61 6d 70 6c 65 0d 0d 53 |ly.)..Ex|ample..S|
|00001260| 74 61 72 74 4f 66 44 72 | 69 76 65 72 20 20 20 20 |tartOfDr|iver |
|00001270| 53 54 41 52 54 0d 0d 20 | 20 20 20 20 20 20 20 20 |START.. | |
|00001280| 20 20 20 20 20 20 20 20 | 64 63 20 69 32 20 27 30 | |dc i2 '0|
|00001290| 27 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |' | |
|000012a0| 20 3b 20 6e 65 77 20 73 | 74 79 6c 65 20 64 72 69 | ; new s|tyle dri|
|000012b0| 76 65 72 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ver. | |
|000012c0| 20 20 20 20 20 64 63 20 | 69 32 20 27 31 36 27 0d | dc |i2 '16'.|
|000012d0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000012e0| 20 20 6a 6d 70 20 28 50 | 72 44 72 69 76 65 72 4c | jmp (P|rDriverL|
|000012f0| 69 73 74 2c 78 29 0d 0d | 0d 50 72 44 72 69 76 65 |ist,x)..|.PrDrive|
|00001300| 72 4c 69 73 74 20 20 20 | 20 20 64 63 20 61 34 27 |rList | dc a4'|
|00001310| 50 72 44 65 66 61 75 6c | 74 27 0d 20 20 20 20 20 |PrDefaul|t'. |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 63 20 61 | | dc a|
|00001330| 34 27 50 72 56 61 6c 69 | 64 61 74 65 27 0d 20 20 |4'PrVali|date'. |
|00001340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00001350| 63 20 61 34 27 50 72 53 | 74 6c 44 69 61 6c 6f 67 |c a4'PrS|tlDialog|
|00001360| 27 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |'. | |
|00001370| 20 20 20 64 63 20 61 34 | 27 50 72 4a 6f 62 44 69 | dc a4|'PrJobDi|
|00001380| 61 6c 6f 67 27 0d 20 20 | 20 20 20 20 20 20 20 20 |alog'. | |
|00001390| 20 20 20 20 20 20 20 64 | 63 20 61 34 27 50 72 50 | d|c a4'PrP|
|000013a0| 69 78 65 6c 4d 61 70 27 | 0d 20 20 20 20 20 20 20 |ixelMap'|. |
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 64 63 20 61 34 27 | | dc a4'|
|000013c0| 50 72 4f 70 65 6e 44 6f | 63 27 0d 20 20 20 20 20 |PrOpenDo|c'. |
|000013d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 63 20 61 | | dc a|
|000013e0| 34 27 50 72 43 6c 6f 73 | 65 44 6f 63 27 0d 20 20 |4'PrClos|eDoc'. |
|000013f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00001400| 63 20 61 34 27 50 72 4f | 70 65 6e 50 61 67 65 27 |c a4'PrO|penPage'|
|00001410| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001420| 20 20 64 63 20 61 34 27 | 50 72 43 6c 6f 73 65 50 | dc a4'|PrCloseP|
|00001430| 61 67 65 27 0d 20 20 20 | 20 20 20 20 20 20 20 20 |age'. | |
|00001440| 20 20 20 20 20 20 64 63 | 20 61 34 27 50 72 50 69 | dc| a4'PrPi|
|00001450| 63 46 69 6c 65 27 0d 20 | 20 20 20 20 20 20 20 20 |cFile'. | |
|00001460| 20 20 20 20 20 20 20 20 | 64 63 20 61 34 27 49 6e | |dc a4'In|
|00001470| 76 61 6c 69 64 52 6f 75 | 74 69 6e 65 27 0d 20 20 |validRou|tine'. |
|00001480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00001490| 63 20 61 34 27 50 72 45 | 72 72 6f 72 27 0d 20 20 |c a4'PrE|rror'. |
|000014a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|000014b0| 63 20 61 34 27 50 72 53 | 65 74 45 72 72 6f 72 27 |c a4'PrS|etError'|
|000014c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000014d0| 20 20 64 63 20 61 34 27 | 47 65 74 44 65 76 69 63 | dc a4'|GetDevic|
|000014e0| 65 4e 61 6d 65 27 0d 20 | 20 20 20 20 20 20 20 20 |eName'. | |
|000014f0| 20 20 20 20 20 20 20 20 | 64 63 20 61 34 27 50 72 | |dc a4'Pr|
|00001500| 44 72 69 76 65 72 56 65 | 72 27 0d 20 20 20 20 20 |DriverVe|r'. |
|00001510| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 63 20 61 | | dc a|
|00001520| 34 27 50 72 47 65 74 50 | 72 69 6e 74 65 72 53 70 |4'PrGetP|rinterSp|
|00001530| 65 63 73 27 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ecs'. | |
|00001540| 20 20 20 20 20 20 64 63 | 20 61 34 27 50 72 47 65 | dc| a4'PrGe|
|00001550| 74 50 61 67 65 4f 72 69 | 65 6e 74 61 74 69 6f 6e |tPageOri|entation|
|00001560| 27 0d 0d 0d 50 72 69 6e | 74 20 44 72 69 76 65 72 |'...Prin|t Driver|
|00001570| 20 45 78 69 74 0d 0d 59 | 6f 75 20 73 68 6f 75 6c | Exit..Y|ou shoul|
|00001580| 64 20 61 64 6a 75 73 74 | 20 74 68 65 20 73 74 61 |d adjust| the sta|
|00001590| 63 6b 20 74 6f 20 75 73 | 65 20 52 54 4c 20 69 6e |ck to us|e RTL in|
|000015a0| 73 74 72 75 63 74 69 6f | 6e 73 20 66 6f 6c 6c 6f |structio|ns follo|
|000015b0| 77 65 64 20 62 79 20 61 | 6e 79 20 72 65 74 75 72 |wed by a|ny retur|
|000015c0| 6e 20 0d 70 61 72 61 6d | 65 74 65 72 73 20 77 69 |n .param|eters wi|
|000015d0| 74 68 20 74 68 65 20 74 | 77 6f 20 6c 6f 6e 67 20 |th the t|wo long |
|000015e0| 72 65 74 75 72 6e 20 61 | 64 64 72 65 73 73 65 73 |return a|ddresses|
|000015f0| 2e 20 20 54 6f 20 61 63 | 63 6f 6d 70 6c 69 73 68 |. To ac|complish|
|00001600| 20 74 68 69 73 2c 20 79 | 6f 75 20 77 69 6c 6c 20 | this, y|ou will |
|00001610| 0d 6e 65 65 64 20 74 6f | 20 64 6f 20 74 68 65 20 |.need to| do the |
|00001620| 66 6f 6c 6c 6f 77 69 6e | 67 3a 0d 0d 20 20 6f 20 |followin|g:.. o |
|00001630| 20 45 6c 69 6d 69 6e 61 | 74 65 20 61 6e 79 20 70 | Elimina|te any p|
|00001640| 61 72 61 6d 65 74 65 72 | 73 20 66 72 6f 6d 20 74 |arameter|s from t|
|00001650| 68 65 20 73 74 61 63 6b | 20 77 68 69 63 68 20 68 |he stack| which h|
|00001660| 61 76 65 20 62 65 65 6e | 20 70 61 73 73 65 64 2e |ave been| passed.|
|00001670| 0d 20 20 6f 20 20 4d 6f | 76 65 20 74 68 65 20 6c |. o Mo|ve the l|
|00001680| 6f 6e 67 20 72 65 74 75 | 72 6e 20 61 64 64 72 65 |ong retu|rn addre|
|00001690| 73 73 65 73 20 73 6f 20 | 74 68 61 74 20 74 68 65 |sses so |that the|
|000016a0| 79 20 61 72 65 20 62 65 | 66 6f 72 65 20 74 68 65 |y are be|fore the|
|000016b0| 20 73 70 61 63 65 20 66 | 6f 72 20 74 68 65 20 0d | space f|or the .|
|000016c0| 20 20 20 20 20 72 65 74 | 75 72 6e 65 64 20 70 61 | ret|urned pa|
|000016d0| 72 61 6d 65 74 65 72 73 | 20 28 69 66 20 61 6e 79 |rameters| (if any|
|000016e0| 29 2e 0d 0d 45 78 61 6d | 70 6c 65 0d 0d 46 69 67 |)...Exam|ple..Fig|
|000016f0| 75 72 65 20 31 20 64 69 | 61 67 72 61 6d 73 20 74 |ure 1 di|agrams t|
|00001700| 68 65 20 73 74 61 63 6b | 20 6a 75 73 74 20 62 65 |he stack| just be|
|00001710| 66 6f 72 65 20 6c 65 61 | 76 69 6e 67 20 74 68 65 |fore lea|ving the|
|00001720| 20 70 72 69 6e 74 20 64 | 72 69 76 65 72 3a 0d 0d | print d|river:..|
|00001730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 50 | | | P|
|00001740| 72 65 76 69 6f 75 73 20 | 43 6f 6e 74 65 6e 74 73 |revious |Contents|
|00001750| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2b 2d |. | +-|
|00001760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001770| 2d 2d 2d 2d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |----. | |
|00001780| 20 20 7c 20 52 65 73 75 | 6c 74 73 20 28 69 66 20 | | Resu|lts (if |
|00001790| 61 6e 79 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |any). | |
|000017a0| 20 20 2b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | +-----|--------|
|000017b0| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 20 20 20 20 |--------|. |
|000017c0| 20 20 20 20 20 20 7c 20 | 52 54 4c 32 20 28 33 20 | | |RTL2 (3 |
|000017d0| 62 79 74 65 73 29 0d 20 | 20 20 20 20 20 20 20 20 |bytes). | |
|000017e0| 20 20 20 20 2b 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | +---|--------|
|000017f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 20 20 20 20 20 |--------|--. |
|00001800| 20 20 20 20 20 20 20 20 | 7c 20 52 54 4c 31 20 28 | || RTL1 (|
|00001810| 33 20 62 79 74 65 73 29 | 0d 20 20 20 20 20 20 20 |3 bytes)|. |
|00001820| 20 20 20 20 20 20 2b 2d | 2d 2d 2d 2d 2d 2d 2d 2d | +-|--------|
|00001830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 20 20 20 |--------|----. |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001860| 3c 2d 2d 2d 20 53 74 61 | 63 6b 20 50 6f 69 6e 74 |<--- Sta|ck Point|
|00001870| 65 72 0d 0d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |er... | |
|00001880| 46 69 67 75 72 65 20 31 | 2d 53 74 61 63 6b 20 50 |Figure 1|-Stack P|
|00001890| 72 69 6f 72 20 74 6f 20 | 45 78 69 74 69 6e 67 20 |rior to |Exiting |
|000018a0| 74 68 65 20 50 72 69 6e | 74 20 44 72 69 76 65 72 |the Prin|t Driver|
|000018b0| 0d 0d 59 6f 75 20 73 68 | 6f 75 6c 64 20 64 6f 20 |..You sh|ould do |
|000018c0| 61 6e 20 52 54 4c 20 77 | 69 74 68 20 74 68 65 20 |an RTL w|ith the |
|000018d0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|000018e0| 66 6c 61 67 73 20 61 6e | 64 20 72 65 67 69 73 74 |flags an|d regist|
|000018f0| 65 72 73 20 73 65 74 20 | 0d 61 70 70 72 6f 70 72 |ers set |.appropr|
|00001900| 69 61 74 65 6c 79 2e 20 | 20 28 53 65 65 20 74 68 |iately. | (See th|
|00001910| 65 20 52 65 74 75 72 6e | 20 66 72 6f 6d 20 43 61 |e Return| from Ca|
|00001920| 6c 6c 20 73 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 |ll secti|on of th|
|00001930| 65 20 22 55 73 69 6e 67 | 20 54 68 65 20 41 70 70 |e "Using| The App|
|00001940| 6c 65 20 0d 54 6f 6f 6c | 73 22 20 63 68 61 70 74 |le .Tool|s" chapt|
|00001950| 65 72 20 6f 66 20 74 68 | 65 20 41 70 70 6c 65 20 |er of th|e Apple |
|00001960| 49 49 47 53 20 54 6f 6f | 6c 62 6f 78 20 52 65 66 |IIGS Too|lbox Ref|
|00001970| 65 72 65 6e 63 65 2e 29 | 0d 0d 0d 50 72 69 6e 74 |erence.)|...Print|
|00001980| 20 52 65 63 6f 72 64 20 | 53 74 72 75 63 74 75 72 | Record |Structur|
|00001990| 65 0d 0d 53 69 6e 63 65 | 20 61 70 70 6c 69 63 61 |e..Since| applica|
|000019a0| 74 69 6f 6e 20 70 72 6f | 67 72 61 6d 73 20 6f 66 |tion pro|grams of|
|000019b0| 74 65 6e 20 6e 65 65 64 | 20 74 6f 20 66 69 64 64 |ten need| to fidd|
|000019c0| 6c 65 20 77 69 74 68 20 | 70 61 72 74 73 20 6f 66 |le with |parts of|
|000019d0| 20 74 68 65 20 70 72 69 | 6e 74 20 72 65 63 6f 72 | the pri|nt recor|
|000019e0| 64 20 0d 28 69 2e 65 2e | 2c 20 74 68 65 20 76 61 |d .(i.e.|, the va|
|000019f0| 6c 75 65 73 20 69 6e 20 | 74 68 65 20 73 74 79 6c |lues in |the styl|
|00001a00| 65 20 73 75 62 72 65 63 | 6f 72 64 29 2c 20 77 65 |e subrec|ord), we|
|00001a10| 20 68 61 76 65 20 64 65 | 66 69 6e 65 64 20 77 61 | have de|fined wa|
|00001a20| 79 73 20 66 6f 72 20 0d | 61 70 70 6c 69 63 61 74 |ys for .|applicat|
|00001a30| 69 6f 6e 73 20 74 6f 20 | 69 6e 74 65 72 70 72 65 |ions to |interpre|
|00001a40| 74 20 74 68 65 20 70 72 | 69 6e 74 20 72 65 63 6f |t the pr|int reco|
|00001a50| 72 64 2c 20 61 6e 64 20 | 73 70 65 63 69 66 69 63 |rd, and |specific|
|00001a60| 61 6c 6c 79 20 74 68 65 | 20 73 74 79 6c 65 20 0d |ally the| style .|
|00001a70| 73 75 62 72 65 63 6f 72 | 64 2e 0d 0d 69 44 65 76 |subrecor|d...iDev|
|00001a80| 2c 20 74 68 65 20 66 69 | 72 73 74 20 77 6f 72 64 |, the fi|rst word|
|00001a90| 20 6f 66 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | of the |printer |
|00001aa0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 75 62 72 |informat|ion subr|
|00001ab0| 65 63 6f 72 64 2c 20 68 | 61 73 20 74 77 6f 20 64 |ecord, h|as two d|
|00001ac0| 65 66 69 6e 65 64 20 0d | 76 61 6c 75 65 73 20 66 |efined .|values f|
|00001ad0| 6f 72 20 74 68 69 72 64 | 2d 70 61 72 74 79 20 70 |or third|-party p|
|00001ae0| 72 69 6e 74 65 72 20 64 | 72 69 76 65 72 73 2e 20 |rinter d|rivers. |
|00001af0| 20 41 20 76 61 6c 75 65 | 20 6f 66 20 24 38 30 30 | A value| of $800|
|00001b00| 31 20 69 6e 64 69 63 61 | 74 65 73 20 61 20 64 6f |1 indica|tes a do|
|00001b10| 74 2d 0d 6d 61 74 72 69 | 78 20 70 72 69 6e 74 65 |t-.matri|x printe|
|00001b20| 72 20 77 68 69 6c 65 20 | 61 20 76 61 6c 75 65 20 |r while |a value |
|00001b30| 6f 66 20 24 38 30 30 33 | 20 69 6e 64 69 63 61 74 |of $8003| indicat|
|00001b40| 65 73 20 61 20 6c 61 73 | 65 72 20 70 72 69 6e 74 |es a las|er print|
|00001b50| 65 72 2e 0d 0d 41 20 76 | 61 6c 75 65 20 6f 66 20 |er...A v|alue of |
|00001b60| 24 38 30 30 31 20 69 6e | 64 69 63 61 74 65 73 20 |$8001 in|dicates |
|00001b70| 74 68 61 74 20 66 69 65 | 6c 64 73 20 6f 66 20 74 |that fie|lds of t|
|00001b80| 68 65 20 73 74 79 6c 65 | 20 73 75 62 72 65 63 6f |he style| subreco|
|00001b90| 72 64 20 73 68 6f 75 6c | 64 20 62 65 20 0d 69 6e |rd shoul|d be .in|
|00001ba0| 74 65 72 70 72 65 74 65 | 64 20 61 73 20 74 68 65 |terprete|d as the|
|00001bb0| 79 20 61 72 65 20 62 79 | 20 74 68 65 20 49 6d 61 |y are by| the Ima|
|00001bc0| 67 65 57 72 69 74 65 72 | 20 64 72 69 76 65 72 2c |geWriter| driver,|
|00001bd0| 20 61 73 20 64 6f 63 75 | 6d 65 6e 74 65 64 20 69 | as docu|mented i|
|00001be0| 6e 20 74 68 65 20 41 70 | 70 6c 65 20 0d 49 49 47 |n the Ap|ple .IIG|
|00001bf0| 53 20 54 6f 6f 6c 62 6f | 78 20 52 65 66 65 72 65 |S Toolbo|x Refere|
|00001c00| 6e 63 65 2e 20 20 54 68 | 65 20 66 69 72 73 74 20 |nce. Th|e first |
|00001c10| 73 65 76 65 6e 20 62 69 | 74 73 20 28 30 2d 36 29 |seven bi|ts (0-6)|
|00001c20| 20 6f 66 20 77 44 65 76 | 20 61 72 65 20 64 65 66 | of wDev| are def|
|00001c30| 69 6e 65 64 20 61 73 20 | 66 6f 72 20 0d 74 68 65 |ined as |for .the|
|00001c40| 20 49 6d 61 67 65 57 72 | 69 74 65 72 20 64 72 69 | ImageWr|iter dri|
|00001c50| 76 65 72 2e 20 20 42 69 | 74 73 20 37 2d 31 31 20 |ver. Bi|ts 7-11 |
|00001c60| 61 72 65 20 72 65 73 65 | 72 76 65 64 20 66 6f 72 |are rese|rved for|
|00001c70| 20 41 70 70 6c 65 27 73 | 20 75 73 65 20 61 6e 64 | Apple's| use and|
|00001c80| 20 6d 75 73 74 20 62 65 | 20 0d 73 65 74 20 74 6f | must be| .set to|
|00001c90| 20 7a 65 72 6f 2e 20 20 | 42 69 74 73 20 31 32 2d | zero. |Bits 12-|
|00001ca0| 31 35 20 6d 61 79 20 62 | 65 20 75 73 65 64 20 62 |15 may b|e used b|
|00001cb0| 79 20 74 68 69 72 64 2d | 70 61 72 74 79 20 70 72 |y third-|party pr|
|00001cc0| 69 6e 74 65 72 20 64 72 | 69 76 65 72 73 20 61 73 |inter dr|ivers as|
|00001cd0| 20 0d 6e 65 63 65 73 73 | 61 72 79 3b 20 74 68 65 | .necess|ary; the|
|00001ce0| 73 65 20 62 69 74 73 20 | 77 69 6c 6c 20 62 65 20 |se bits |will be |
|00001cf0| 73 65 74 20 74 6f 20 7a | 65 72 6f 20 69 6e 20 41 |set to z|ero in A|
|00001d00| 70 70 6c 65 27 73 20 64 | 72 69 76 65 72 73 2e 0d |pple's d|rivers..|
|00001d10| 0d 41 20 76 61 6c 75 65 | 20 6f 66 20 24 38 30 30 |.A value| of $800|
|00001d20| 33 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |3 indica|tes that|
|00001d30| 20 66 69 65 6c 64 73 20 | 6f 66 20 74 68 65 20 73 | fields |of the s|
|00001d40| 74 79 6c 65 20 73 75 62 | 72 65 63 6f 72 64 20 73 |tyle sub|record s|
|00001d50| 68 6f 75 6c 64 20 62 65 | 20 0d 69 6e 74 65 72 70 |hould be| .interp|
|00001d60| 72 65 74 65 64 20 61 73 | 20 74 68 65 79 20 61 72 |reted as| they ar|
|00001d70| 65 20 62 79 20 74 68 65 | 20 4c 61 73 65 72 57 72 |e by the| LaserWr|
|00001d80| 69 74 65 72 20 64 72 69 | 76 65 72 2e 20 20 54 68 |iter dri|ver. Th|
|00001d90| 65 20 66 69 72 73 74 20 | 66 6f 75 72 20 62 69 74 |e first |four bit|
|00001da0| 73 20 28 30 2d 33 29 20 | 0d 6f 66 20 77 44 65 76 |s (0-3) |.of wDev|
|00001db0| 20 61 72 65 20 64 65 66 | 69 6e 65 64 20 61 73 20 | are def|ined as |
|00001dc0| 66 6f 72 20 74 68 65 20 | 4c 61 73 65 72 57 72 69 |for the |LaserWri|
|00001dd0| 74 65 72 20 64 72 69 76 | 65 72 2e 20 20 42 69 74 |ter driv|er. Bit|
|00001de0| 73 20 34 2d 31 31 20 61 | 72 65 20 72 65 73 65 72 |s 4-11 a|re reser|
|00001df0| 76 65 64 20 66 6f 72 20 | 0d 41 70 70 6c 65 27 73 |ved for |.Apple's|
|00001e00| 20 75 73 65 20 61 6e 64 | 20 6d 75 73 74 20 62 65 | use and| must be|
|00001e10| 20 73 65 74 20 74 6f 20 | 7a 65 72 6f 2e 20 20 42 | set to |zero. B|
|00001e20| 69 74 73 20 31 32 2d 31 | 35 20 6d 61 79 20 62 65 |its 12-1|5 may be|
|00001e30| 20 75 73 65 64 20 62 79 | 20 74 68 69 72 64 2d 70 | used by| third-p|
|00001e40| 61 72 74 79 20 0d 70 72 | 69 6e 74 65 72 20 64 72 |arty .pr|inter dr|
|00001e50| 69 76 65 72 73 20 61 73 | 20 6e 65 63 65 73 73 61 |ivers as| necessa|
|00001e60| 72 79 3b 20 74 68 65 73 | 65 20 62 69 74 73 20 77 |ry; thes|e bits w|
|00001e70| 69 6c 6c 20 62 65 20 73 | 65 74 20 74 6f 20 7a 65 |ill be s|et to ze|
|00001e80| 72 6f 20 69 6e 20 41 70 | 70 6c 65 27 73 20 0d 64 |ro in Ap|ple's .d|
|00001e90| 72 69 76 65 72 73 2e 0d | 0d 49 66 20 61 6e 20 61 |rivers..|.If an a|
|00001ea0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 73 68 65 |pplicati|on wishe|
|00001eb0| 73 20 74 6f 20 74 61 6b | 65 20 61 64 76 61 6e 74 |s to tak|e advant|
|00001ec0| 61 67 65 73 20 6f 66 20 | 73 70 65 63 69 66 69 63 |ages of |specific|
|00001ed0| 20 66 65 61 74 75 72 65 | 73 20 6f 66 20 61 20 74 | feature|s of a t|
|00001ee0| 68 69 72 64 2d 0d 70 61 | 72 74 79 20 70 72 69 6e |hird-.pa|rty prin|
|00001ef0| 74 65 72 20 64 72 69 76 | 65 72 2c 20 69 74 20 68 |ter driv|er, it h|
|00001f00| 61 73 20 74 6f 20 6b 6e | 6f 77 20 74 68 61 74 20 |as to kn|ow that |
|00001f10| 69 74 20 69 73 20 64 65 | 61 6c 69 6e 67 20 77 69 |it is de|aling wi|
|00001f20| 74 68 20 74 68 61 74 20 | 64 72 69 76 65 72 2e 20 |th that |driver. |
|00001f30| 20 0d 53 69 6e 63 65 20 | 61 6c 6c 20 64 72 69 76 | .Since |all driv|
|00001f40| 65 72 73 20 77 69 6c 6c | 20 6c 6f 6f 6b 20 70 72 |ers will| look pr|
|00001f50| 65 74 74 79 20 6d 75 63 | 68 20 61 6c 69 6b 65 2c |etty muc|h alike,|
|00001f60| 20 74 68 65 20 50 72 69 | 6e 74 20 4d 61 6e 61 67 | the Pri|nt Manag|
|00001f70| 65 72 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |er allow|s you to|
|00001f80| 20 0d 61 73 6b 20 66 6f | 72 20 74 68 65 20 6e 61 | .ask fo|r the na|
|00001f90| 6d 65 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |me of th|e curren|
|00001fa0| 74 6c 79 20 73 65 6c 65 | 63 74 65 64 20 70 72 69 |tly sele|cted pri|
|00001fb0| 6e 74 65 72 20 64 72 69 | 76 65 72 2e 20 20 41 6e |nter dri|ver. An|
|00001fc0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6d 61 79 | applica|tion may|
|00001fd0| 20 0d 6d 61 6b 65 20 74 | 68 65 20 50 72 69 6e 74 | .make t|he Print|
|00001fe0| 20 4d 61 6e 61 67 65 72 | 20 63 61 6c 6c 20 50 4d | Manager| call PM|
|00001ff0| 47 65 74 50 72 69 6e 74 | 65 72 4e 61 6d 65 2c 20 |GetPrint|erName, |
|00002000| 77 68 69 63 68 20 69 73 | 20 64 6f 63 75 6d 65 6e |which is| documen|
|00002010| 74 65 64 20 69 6e 20 74 | 68 69 73 20 0d 4e 6f 74 |ted in t|his .Not|
|00002020| 65 2e 20 20 54 68 65 20 | 50 72 69 6e 74 20 4d 61 |e. The |Print Ma|
|00002030| 6e 61 67 65 72 20 77 69 | 6c 6c 20 72 65 74 75 72 |nager wi|ll retur|
|00002040| 6e 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |n the na|me of th|
|00002050| 65 20 63 75 72 72 65 6e | 74 6c 79 20 73 65 6c 65 |e curren|tly sele|
|00002060| 63 74 65 64 20 0d 70 72 | 69 6e 74 65 72 20 69 6e |cted .pr|inter in|
|00002070| 20 61 20 50 61 73 63 61 | 6c 20 28 6c 65 6e 67 74 | a Pasca|l (lengt|
|00002080| 68 20 62 79 74 65 29 20 | 73 74 72 69 6e 67 2e 20 |h byte) |string. |
|00002090| 20 54 68 65 20 6e 61 6d | 65 20 72 65 74 75 72 6e | The nam|e return|
|000020a0| 65 64 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |ed is th|e name o|
|000020b0| 66 20 0d 74 68 65 20 66 | 69 6c 65 20 66 72 6f 6d |f .the f|ile from|
|000020c0| 20 77 68 69 63 68 20 74 | 68 65 20 64 72 69 76 65 | which t|he drive|
|000020d0| 72 20 77 61 73 20 6c 6f | 61 64 65 64 2e 20 20 49 |r was lo|aded. I|
|000020e0| 66 20 79 6f 75 20 69 6e | 74 65 6e 64 20 74 6f 20 |f you in|tend to |
|000020f0| 75 73 65 20 74 68 69 73 | 20 6d 65 74 68 6f 64 20 |use this| method |
|00002100| 0d 74 6f 20 69 64 65 6e | 74 69 66 79 20 61 20 64 |.to iden|tify a d|
|00002110| 72 69 76 65 72 2c 20 79 | 6f 75 20 6d 75 73 74 20 |river, y|ou must |
|00002120| 69 6e 66 6f 72 6d 20 75 | 73 65 72 73 20 6e 6f 74 |inform u|sers not|
|00002130| 20 74 6f 20 72 65 6e 61 | 6d 65 20 74 68 65 20 50 | to rena|me the P|
|00002140| 72 69 6e 74 65 72 20 44 | 72 69 76 65 72 20 0d 66 |rinter D|river .f|
|00002150| 69 6c 65 20 6f 6e 20 74 | 68 65 20 62 6f 6f 74 20 |ile on t|he boot |
|00002160| 64 69 73 6b 2e 0d 0d 54 | 68 65 20 50 4d 47 65 74 |disk...T|he PMGet|
|00002170| 50 72 69 6e 74 65 72 4e | 61 6d 65 20 63 61 6c 6c |PrinterN|ame call|
|00002180| 20 69 73 20 61 73 20 66 | 6f 6c 6c 6f 77 73 3a 0d | is as f|ollows:.|
|00002190| 0d 4e 6f 74 65 3a 20 20 | 54 68 69 73 20 69 73 20 |.Note: |This is |
|000021a0| 61 20 50 72 69 6e 74 20 | 4d 61 6e 61 67 65 72 20 |a Print |Manager |
|000021b0| 63 61 6c 6c 2c 20 6e 6f | 74 20 61 20 50 72 69 6e |call, no|t a Prin|
|000021c0| 74 65 72 20 44 72 69 76 | 65 72 20 63 61 6c 6c 2e |ter Driv|er call.|
|000021d0| 20 20 0d 20 20 20 20 20 | 20 20 49 74 20 69 73 20 | . | It is |
|000021e0| 74 68 65 20 6f 6e 6c 79 | 20 50 72 69 6e 74 20 4d |the only| Print M|
|000021f0| 61 6e 61 67 65 72 20 63 | 61 6c 6c 20 64 6f 63 75 |anager c|all docu|
|00002200| 6d 65 6e 74 65 64 20 69 | 6e 20 74 68 69 73 20 4e |mented i|n this N|
|00002210| 6f 74 65 2e 20 20 0d 20 | 20 20 20 20 20 20 50 72 |ote. . | Pr|
|00002220| 69 6e 74 65 72 20 44 72 | 69 76 65 72 73 20 64 6f |inter Dr|ivers do|
|00002230| 20 6e 6f 74 20 69 6e 63 | 6c 75 64 65 20 74 68 69 | not inc|lude thi|
|00002240| 73 20 63 61 6c 6c 2e 0d | 0d 50 4d 47 65 74 50 72 |s call..|.PMGetPr|
|00002250| 69 6e 74 65 72 4e 61 6d | 65 20 20 20 20 20 20 20 |interNam|e |
|00002260| 20 20 28 24 32 38 31 33 | 29 0d 0d 44 65 73 63 72 | ($2813|)..Descr|
|00002270| 69 70 74 69 6f 6e 3a 0d | 20 20 20 20 52 65 74 75 |iption:.| Retu|
|00002280| 72 6e 73 20 61 20 50 61 | 73 63 61 6c 20 73 74 72 |rns a Pa|scal str|
|00002290| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 66 69 6c |ing with| the fil|
|000022a0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 63 75 |e name o|f the cu|
|000022b0| 72 72 65 6e 74 6c 79 20 | 73 65 6c 65 63 74 65 64 |rrently |selected|
|000022c0| 20 0d 20 20 20 20 70 72 | 69 6e 74 65 72 20 64 72 | . pr|inter dr|
|000022d0| 69 76 65 72 2e 0d 0d 50 | 61 73 73 65 64 3a 0d 20 |iver...P|assed:. |
|000022e0| 20 20 20 4c 6f 6e 67 73 | 70 61 63 65 20 20 20 20 | Longs|pace |
|000022f0| 20 20 20 20 20 20 20 20 | 4c 4f 4e 47 20 20 20 20 | |LONG |
|00002300| 20 20 20 20 53 70 61 63 | 65 20 66 6f 72 20 72 65 | Spac|e for re|
|00002310| 73 75 6c 74 0d 0d 52 65 | 74 75 72 6e 65 64 3a 0d |sult..Re|turned:.|
|00002320| 20 20 20 20 4e 61 6d 65 | 50 6f 69 6e 74 65 72 20 | Name|Pointer |
|00002330| 20 20 20 20 20 20 20 20 | 20 4c 4f 4e 47 20 20 20 | | LONG |
|00002340| 20 20 20 20 20 50 6f 69 | 6e 74 65 72 20 74 6f 20 | Poi|nter to |
|00002350| 61 20 50 61 73 63 61 6c | 20 73 74 72 69 6e 67 20 |a Pascal| string |
|00002360| 6f 66 20 64 72 69 76 65 | 72 20 0d 20 20 20 20 20 |of drive|r . |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002390| 66 69 6c 65 6e 61 6d 65 | 0d 0d 0d 50 72 69 6e 74 |filename|...Print|
|000023a0| 20 44 72 69 76 65 72 20 | 43 61 6c 6c 73 0d 0d 50 | Driver |Calls..P|
|000023b0| 72 44 65 66 61 75 6c 74 | 20 20 20 20 20 20 20 20 |rDefault| |
|000023c0| 20 20 20 20 20 20 20 20 | 28 24 30 39 31 33 29 0d | |($0913).|
|000023d0| 0d 44 65 73 63 72 69 70 | 74 69 6f 6e 3a 0d 20 20 |.Descrip|tion:. |
|000023e0| 20 20 46 69 6c 6c 73 20 | 74 68 65 20 66 69 65 6c | Fills |the fiel|
|000023f0| 64 73 20 6f 66 20 74 68 | 65 20 73 70 65 63 69 66 |ds of th|e specif|
|00002400| 69 65 64 20 70 72 69 6e | 74 20 72 65 63 6f 72 64 |ied prin|t record|
|00002410| 20 77 69 74 68 20 64 65 | 66 61 75 6c 74 20 76 61 | with de|fault va|
|00002420| 6c 75 65 73 20 66 6f 72 | 20 74 68 65 20 0d 20 20 |lues for| the . |
|00002430| 20 20 70 72 69 6e 74 65 | 72 2e 0d 0d 50 61 73 73 | printe|r...Pass|
|00002440| 65 64 3a 0d 20 20 20 20 | 50 72 69 6e 74 52 65 63 |ed:. |PrintRec|
|00002450| 6f 72 64 48 61 6e 64 6c | 65 20 20 20 20 4c 4f 4e |ordHandl|e LON|
|00002460| 47 20 20 20 20 20 20 20 | 20 48 61 6e 64 6c 65 20 |G | Handle |
|00002470| 74 6f 20 74 68 65 20 70 | 72 69 6e 74 20 72 65 63 |to the p|rint rec|
|00002480| 6f 72 64 0d 0d 52 65 74 | 75 72 6e 65 64 3a 0d 20 |ord..Ret|urned:. |
|00002490| 20 20 20 4e 6f 6e 65 0d | 0d 50 65 72 66 6f 72 6d | None.|.Perform|
|000024a0| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 3a |s the fo|llowing:|
|000024b0| 0d 20 20 6f 20 20 56 61 | 6c 69 64 61 74 65 73 20 |. o Va|lidates |
|000024c0| 74 68 61 74 20 50 72 69 | 6e 74 52 65 63 6f 72 64 |that Pri|ntRecord|
|000024d0| 48 61 6e 64 6c 65 20 69 | 73 20 61 20 68 61 6e 64 |Handle i|s a hand|
|000024e0| 6c 65 20 61 6e 64 20 64 | 6f 65 73 20 6e 6f 74 68 |le and d|oes noth|
|000024f0| 69 6e 67 20 69 66 20 6e | 6f 74 2e 0d 20 20 6f 20 |ing if n|ot.. o |
|00002500| 20 44 65 74 65 72 6d 69 | 6e 65 73 20 74 68 65 20 | Determi|nes the |
|00002510| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 73 20 66 |default |values f|
|00002520| 6f 72 20 74 68 65 20 70 | 72 69 6e 74 20 72 65 63 |or the p|rint rec|
|00002530| 6f 72 64 20 65 69 74 68 | 65 72 20 74 68 72 6f 75 |ord eith|er throu|
|00002540| 67 68 20 74 61 62 6c 65 | 73 20 6f 72 20 0d 20 20 |gh table|s or . |
|00002550| 20 20 20 63 61 6c 63 75 | 6c 61 74 69 6f 6e 73 2e | calcu|lations.|
|00002560| 20 20 54 68 65 20 64 65 | 66 61 75 6c 74 20 76 61 | The de|fault va|
|00002570| 6c 75 65 73 20 73 68 6f | 75 6c 64 20 74 61 6b 65 |lues sho|uld take|
|00002580| 20 69 6e 74 6f 20 61 63 | 63 6f 75 6e 74 20 73 75 | into ac|count su|
|00002590| 63 68 20 74 68 69 6e 67 | 73 20 61 73 20 0d 20 20 |ch thing|s as . |
|000025a0| 20 20 20 70 61 70 65 72 | 20 73 69 7a 65 20 61 6e | paper| size an|
|000025b0| 64 20 6f 72 69 65 6e 74 | 61 74 69 6f 6e 2c 20 70 |d orient|ation, p|
|000025c0| 72 69 6e 74 20 6d 6f 64 | 65 2c 20 70 72 69 6e 74 |rint mod|e, print|
|000025d0| 65 72 20 74 79 70 65 2c | 20 65 74 63 2e 0d 20 20 |er type,| etc.. |
|000025e0| 6f 20 20 43 6f 70 69 65 | 73 20 74 68 65 20 64 65 |o Copie|s the de|
|000025f0| 66 61 75 6c 74 20 76 61 | 6c 75 65 73 20 74 6f 20 |fault va|lues to |
|00002600| 74 68 65 20 70 72 69 6e | 74 20 72 65 63 6f 72 64 |the prin|t record|
|00002610| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 74 68 | specifi|ed by th|
|00002620| 65 20 0d 20 20 20 20 20 | 50 72 69 6e 74 52 65 63 |e . |PrintRec|
|00002630| 6f 72 64 48 61 6e 64 6c | 65 20 70 61 72 61 6d 65 |ordHandl|e parame|
|00002640| 74 65 72 2e 0d 0d 0d 50 | 72 56 61 6c 69 64 61 74 |ter....P|rValidat|
|00002650| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00002660| 28 24 30 41 31 33 29 0d | 0d 44 65 73 63 72 69 70 |($0A13).|.Descrip|
|00002670| 74 69 6f 6e 3a 0d 20 20 | 20 20 43 68 65 63 6b 73 |tion:. | Checks|
|00002680| 20 74 68 65 20 70 72 69 | 6e 74 20 72 65 63 6f 72 | the pri|nt recor|
|00002690| 64 20 74 6f 20 73 65 65 | 20 74 68 61 74 20 69 74 |d to see| that it|
|000026a0| 20 69 73 20 76 61 6c 69 | 64 20 66 6f 72 20 74 68 | is vali|d for th|
|000026b0| 65 20 63 75 72 72 65 6e | 74 6c 79 20 69 6e 73 74 |e curren|tly inst|
|000026c0| 61 6c 6c 65 64 20 0d 20 | 20 20 20 70 72 69 6e 74 |alled . | print|
|000026d0| 65 72 20 64 72 69 76 65 | 72 2e 0d 0d 50 61 73 73 |er drive|r...Pass|
|000026e0| 65 64 3a 0d 20 20 20 20 | 50 72 69 6e 74 52 65 63 |ed:. |PrintRec|
|000026f0| 6f 72 64 48 61 6e 64 6c | 65 20 20 20 20 4c 4f 4e |ordHandl|e LON|
|00002700| 47 20 20 20 20 20 20 20 | 20 48 61 6e 64 6c 65 20 |G | Handle |
|00002710| 74 6f 20 74 68 65 20 70 | 72 69 6e 74 20 72 65 63 |to the p|rint rec|
|00002720| 6f 72 64 0d 0d 52 65 74 | 75 72 6e 65 64 3a 0d 20 |ord..Ret|urned:. |
|00002730| 20 20 20 43 68 61 6e 67 | 65 46 6c 61 67 20 20 20 | Chang|eFlag |
|00002740| 20 20 20 20 20 20 20 20 | 57 4f 52 44 20 20 20 20 | |WORD |
|00002750| 20 20 20 20 42 6f 6f 6c | 65 61 6e 3b 20 54 52 55 | Bool|ean; TRU|
|00002760| 45 20 69 66 20 74 68 65 | 20 72 65 63 6f 72 64 20 |E if the| record |
|00002770| 69 73 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |is . | |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002790| 20 20 20 20 20 20 20 20 | 20 61 64 6a 75 73 74 65 | | adjuste|
|000027a0| 64 0d 0d 50 65 72 66 6f | 72 6d 73 20 74 68 65 20 |d..Perfo|rms the |
|000027b0| 66 6f 6c 6c 6f 77 69 6e | 67 3a 0d 20 20 6f 20 20 |followin|g:. o |
|000027c0| 43 68 65 63 6b 73 20 74 | 6f 20 73 65 65 20 69 66 |Checks t|o see if|
|000027d0| 20 74 68 65 20 70 72 69 | 6e 74 20 72 65 63 6f 72 | the pri|nt recor|
|000027e0| 64 20 69 73 20 66 72 6f | 6d 20 74 68 69 73 20 70 |d is fro|m this p|
|000027f0| 61 72 74 69 63 75 6c 61 | 72 20 64 72 69 76 65 72 |articula|r driver|
|00002800| 2e 0d 20 20 6f 20 20 49 | 66 20 74 68 65 20 70 72 |.. o I|f the pr|
|00002810| 69 6e 74 20 72 65 63 6f | 72 64 20 69 73 20 6e 6f |int reco|rd is no|
|00002820| 74 20 66 72 6f 6d 20 74 | 68 69 73 20 64 72 69 76 |t from t|his driv|
|00002830| 65 72 2c 20 69 74 20 75 | 73 65 73 20 74 68 65 20 |er, it u|ses the |
|00002840| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 73 20 66 |default |values f|
|00002850| 6f 72 20 0d 20 20 20 20 | 20 74 68 69 73 20 64 72 |or . | this dr|
|00002860| 69 76 65 72 2e 0d 20 20 | 6f 20 20 49 66 20 74 68 |iver.. |o If th|
|00002870| 65 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 20 69 |e print |record i|
|00002880| 73 20 66 72 6f 6d 20 74 | 68 69 73 20 64 72 69 76 |s from t|his driv|
|00002890| 65 72 2c 20 69 74 20 6d | 61 6b 65 73 20 61 6e 79 |er, it m|akes any|
|000028a0| 20 63 68 61 6e 67 65 73 | 20 74 68 61 74 20 6d 69 | changes| that mi|
|000028b0| 67 68 74 20 62 65 20 0d | 20 20 20 20 20 6e 65 65 |ght be .| nee|
|000028c0| 64 65 64 20 28 69 2e 65 | 2e 2c 20 73 74 79 6c 65 |ded (i.e|., style|
|000028d0| 2c 20 70 61 70 65 72 20 | 73 69 7a 65 2c 20 65 74 |, paper |size, et|
|000028e0| 63 2e 29 2e 0d 0d 0d 50 | 72 53 74 6c 44 69 61 6c |c.)....P|rStlDial|
|000028f0| 6f 67 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |og | |
|00002900| 28 24 30 42 31 33 29 0d | 0d 44 65 73 63 72 69 70 |($0B13).|.Descrip|
|00002910| 74 69 6f 6e 3a 0d 20 20 | 20 20 50 65 72 66 6f 72 |tion:. | Perfor|
|00002920| 6d 73 20 61 20 73 74 79 | 6c 65 20 64 69 61 6c 6f |ms a sty|le dialo|
|00002930| 67 20 77 69 74 68 20 74 | 68 65 20 75 73 65 72 2e |g with t|he user.|
|00002940| 0d 0d 50 61 73 73 65 64 | 3a 0d 20 20 20 20 50 72 |..Passed|:. Pr|
|00002950| 69 6e 74 52 65 63 6f 72 | 64 48 61 6e 64 6c 65 20 |intRecor|dHandle |
|00002960| 20 20 20 4c 4f 4e 47 20 | 20 20 20 20 20 20 20 48 | LONG | H|
|00002970| 61 6e 64 6c 65 20 74 6f | 20 74 68 65 20 70 72 69 |andle to| the pri|
|00002980| 6e 74 20 72 65 63 6f 72 | 64 0d 0d 52 65 74 75 72 |nt recor|d..Retur|
|00002990| 6e 65 64 3a 0d 20 20 20 | 20 43 6f 6e 66 69 72 6d |ned:. | Confirm|
|000029a0| 46 6c 61 67 20 20 20 20 | 20 20 20 20 20 20 57 4f |Flag | WO|
|000029b0| 52 44 20 20 20 20 20 20 | 20 20 42 6f 6f 6c 65 61 |RD | Boolea|
|000029c0| 6e 3b 20 54 52 55 45 20 | 69 66 20 74 68 65 20 64 |n; TRUE |if the d|
|000029d0| 69 61 6c 6f 67 20 69 73 | 20 0d 20 20 20 20 20 20 |ialog is| . |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00002a00| 6f 6e 66 69 72 6d 65 64 | 0d 0d 50 65 72 66 6f 72 |onfirmed|..Perfor|
|00002a10| 6d 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ms the f|ollowing|
|00002a20| 3a 0d 20 20 6f 20 20 43 | 6f 6e 64 75 63 74 73 20 |:. o C|onducts |
|00002a30| 61 20 73 74 79 6c 65 20 | 64 69 61 6c 6f 67 20 77 |a style |dialog w|
|00002a40| 69 74 68 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |ith the |user to |
|00002a50| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 70 61 |determin|e the pa|
|00002a60| 67 65 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 61 6e |ge dimen|sions an|
|00002a70| 64 20 0d 20 20 20 20 20 | 6f 74 68 65 72 20 69 6e |d . |other in|
|00002a80| 66 6f 72 6d 61 74 69 6f | 6e 20 6e 65 65 64 65 64 |formatio|n needed|
|00002a90| 20 66 6f 72 20 70 61 67 | 65 20 73 65 74 75 70 20 | for pag|e setup |
|00002aa0| 28 74 68 65 20 69 6e 69 | 74 69 61 6c 20 73 65 74 |(the ini|tial set|
|00002ab0| 74 69 6e 67 73 20 6f 66 | 20 74 68 65 20 64 69 61 |tings of| the dia|
|00002ac0| 6c 6f 67 20 0d 20 20 20 | 20 20 61 72 65 20 64 65 |log . | are de|
|00002ad0| 72 69 76 65 64 20 66 72 | 6f 6d 20 74 68 65 20 70 |rived fr|om the p|
|00002ae0| 72 69 6e 74 20 72 65 63 | 6f 72 64 29 2e 0d 20 20 |rint rec|ord).. |
|00002af0| 6f 20 20 49 66 20 74 68 | 65 20 75 73 65 72 20 63 |o If th|e user c|
|00002b00| 6f 6e 66 69 72 6d 73 20 | 74 68 65 20 64 69 61 6c |onfirms |the dial|
|00002b10| 6f 67 2c 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |og, the |informat|
|00002b20| 69 6f 6e 20 66 72 6f 6d | 20 74 68 65 20 64 69 61 |ion from| the dia|
|00002b30| 6c 6f 67 20 69 73 20 73 | 61 76 65 64 20 0d 20 20 |log is s|aved . |
|00002b40| 20 20 20 69 6e 20 74 68 | 65 20 73 70 65 63 69 66 | in th|e specif|
|00002b50| 69 65 64 20 70 72 69 6e | 74 20 72 65 63 6f 72 64 |ied prin|t record|
|00002b60| 2c 20 50 72 56 61 6c 69 | 64 61 74 65 20 69 73 20 |, PrVali|date is |
|00002b70| 63 61 6c 6c 65 64 2c 20 | 61 6e 64 20 74 68 65 20 |called, |and the |
|00002b80| 72 6f 75 74 69 6e 65 20 | 0d 20 20 20 20 20 72 65 |routine |. re|
|00002b90| 74 75 72 6e 73 20 54 52 | 55 45 2e 0d 20 20 6f 20 |turns TR|UE.. o |
|00002ba0| 20 49 66 20 74 68 65 20 | 75 73 65 72 20 63 61 6e | If the |user can|
|00002bb0| 63 65 6c 73 20 74 68 65 | 20 64 69 61 6c 6f 67 2c |cels the| dialog,|
|00002bc0| 20 74 68 65 20 70 72 69 | 6e 74 20 72 65 63 6f 72 | the pri|nt recor|
|00002bd0| 64 20 69 73 20 6c 65 66 | 74 20 75 6e 63 68 61 6e |d is lef|t unchan|
|00002be0| 67 65 64 2c 20 61 6e 64 | 20 74 68 65 20 0d 20 20 |ged, and| the . |
|00002bf0| 20 20 20 72 6f 75 74 69 | 6e 65 20 72 65 74 75 72 | routi|ne retur|
|00002c00| 6e 73 20 46 41 4c 53 45 | 2e 0d 0d 4e 6f 74 65 3a |ns FALSE|...Note:|
|00002c10| 20 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | The fo|llowing |
|00002c20| 61 72 65 20 69 74 65 6d | 73 20 74 79 70 69 63 61 |are item|s typica|
|00002c30| 6c 6c 79 20 66 6f 75 6e | 64 20 69 6e 20 70 72 69 |lly foun|d in pri|
|00002c40| 6e 74 65 72 20 73 74 79 | 6c 65 20 64 69 61 6c 6f |nter sty|le dialo|
|00002c50| 67 73 3a 0d 0d 20 20 6f | 20 20 50 61 70 65 72 20 |gs:.. o| Paper |
|00002c60| 53 69 7a 65 20 28 55 53 | 20 4c 65 74 74 65 72 2c |Size (US| Letter,|
|00002c70| 20 55 53 20 4c 65 67 61 | 6c 2c 20 41 34 20 4c 65 | US Lega|l, A4 Le|
|00002c80| 74 74 65 72 2c 20 42 35 | 20 4c 65 74 74 65 72 2c |tter, B5| Letter,|
|00002c90| 20 49 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 20 0d | Interna|tional .|
|00002ca0| 20 20 20 20 20 46 61 6e | 66 6f 6c 64 29 0d 20 20 | Fan|fold). |
|00002cb0| 6f 20 20 50 72 69 6e 74 | 69 6e 67 20 4f 72 69 65 |o Print|ing Orie|
|00002cc0| 6e 74 61 74 69 6f 6e 20 | 28 4c 61 6e 64 73 63 61 |ntation |(Landsca|
|00002cd0| 70 65 2c 20 50 6f 72 74 | 72 61 69 74 29 0d 20 20 |pe, Port|rait). |
|00002ce0| 6f 20 20 56 65 72 74 69 | 63 61 6c 20 53 69 7a 69 |o Verti|cal Sizi|
|00002cf0| 6e 67 20 28 4e 6f 72 6d | 61 6c 2c 20 49 6e 74 65 |ng (Norm|al, Inte|
|00002d00| 72 6d 65 64 69 61 74 65 | 2c 20 43 6f 6e 64 65 6e |rmediate|, Conden|
|00002d10| 73 65 64 29 0d 20 20 6f | 20 20 53 70 65 63 69 61 |sed). o| Specia|
|00002d20| 6c 20 45 66 66 65 63 74 | 73 3a 0d 20 20 20 20 20 |l Effect|s:. |
|00002d30| 20 20 46 6f 6e 74 20 45 | 66 66 65 63 74 73 20 28 | Font E|ffects (|
|00002d40| 46 6f 6e 74 20 53 75 62 | 73 74 69 74 75 74 69 6f |Font Sub|stitutio|
|00002d50| 6e 2c 20 53 6d 6f 6f 74 | 68 69 6e 67 29 0d 20 20 |n, Smoot|hing). |
|00002d60| 20 20 20 20 20 52 65 64 | 75 63 74 69 6f 6e 20 6f | Red|uction o|
|00002d70| 72 20 45 6e 6c 61 72 67 | 65 6d 65 6e 74 0d 20 20 |r Enlarg|ement. |
|00002d80| 20 20 20 20 20 47 61 70 | 73 20 6f 72 20 4e 6f 20 | Gap|s or No |
|00002d90| 47 61 70 73 20 62 65 74 | 77 65 65 6e 20 70 61 67 |Gaps bet|ween pag|
|00002da0| 65 73 0d 0d 45 76 65 72 | 79 20 70 72 69 6e 74 65 |es..Ever|y printe|
|00002db0| 72 20 73 74 79 6c 65 20 | 64 69 61 6c 6f 67 20 73 |r style |dialog s|
|00002dc0| 68 6f 75 6c 64 20 68 61 | 76 65 20 61 6e 20 4f 4b |hould ha|ve an OK|
|00002dd0| 20 62 75 74 74 6f 6e 20 | 28 64 65 66 61 75 6c 74 | button |(default|
|00002de0| 29 20 61 6e 64 20 61 20 | 43 61 6e 63 65 6c 20 0d |) and a |Cancel .|
|00002df0| 62 75 74 74 6f 6e 2e 0d | 0d 0d 50 72 4a 6f 62 44 |button..|..PrJobD|
|00002e00| 69 61 6c 6f 67 20 20 20 | 20 20 20 20 20 20 20 20 |ialog | |
|00002e10| 20 20 20 28 24 30 43 31 | 33 29 0d 0d 44 65 73 63 | ($0C1|3)..Desc|
|00002e20| 72 69 70 74 69 6f 6e 3a | 0d 20 20 20 20 50 65 72 |ription:|. Per|
|00002e30| 66 6f 72 6d 73 20 61 20 | 6a 6f 62 20 64 69 61 6c |forms a |job dial|
|00002e40| 6f 67 20 77 69 74 68 20 | 74 68 65 20 75 73 65 72 |og with |the user|
|00002e50| 2e 0d 0d 50 61 73 73 65 | 64 3a 0d 20 20 20 20 50 |...Passe|d:. P|
|00002e60| 72 69 6e 74 52 65 63 6f | 72 64 48 61 6e 64 6c 65 |rintReco|rdHandle|
|00002e70| 20 20 20 20 4c 4f 4e 47 | 20 20 20 20 20 20 20 20 | LONG| |
|00002e80| 48 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 70 72 |Handle t|o the pr|
|00002e90| 69 6e 74 20 72 65 63 6f | 72 64 0d 0d 52 65 74 75 |int reco|rd..Retu|
|00002ea0| 72 6e 65 64 3a 0d 20 20 | 20 20 43 6f 6e 66 69 72 |rned:. | Confir|
|00002eb0| 6d 46 6c 61 67 20 20 20 | 20 20 20 20 20 20 20 57 |mFlag | W|
|00002ec0| 4f 52 44 20 20 20 20 20 | 20 20 20 42 6f 6f 6c 65 |ORD | Boole|
|00002ed0| 61 6e 3b 20 54 72 75 65 | 20 69 66 20 74 68 65 20 |an; True| if the |
|00002ee0| 64 69 61 6c 6f 67 20 69 | 73 20 0d 20 20 20 20 20 |dialog i|s . |
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f10| 63 6f 6e 66 69 72 6d 65 | 64 0d 0d 50 65 72 66 6f |confirme|d..Perfo|
|00002f20| 72 6d 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |rms the |followin|
|00002f30| 67 3a 0d 20 20 6f 20 20 | 43 6f 6e 64 75 63 74 73 |g:. o |Conducts|
|00002f40| 20 61 20 6a 6f 62 20 64 | 69 61 6c 6f 67 20 77 69 | a job d|ialog wi|
|00002f50| 74 68 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 64 |th the u|ser to d|
|00002f60| 65 74 65 72 6d 69 6e 65 | 20 74 68 65 20 70 72 69 |etermine| the pri|
|00002f70| 6e 74 20 71 75 61 6c 69 | 74 79 2c 20 72 61 6e 67 |nt quali|ty, rang|
|00002f80| 65 20 0d 20 20 20 20 20 | 6f 66 20 70 61 67 65 73 |e . |of pages|
|00002f90| 20 74 6f 20 70 72 69 6e | 74 2c 20 61 6e 64 20 6f | to prin|t, and o|
|00002fa0| 74 68 65 72 20 73 70 65 | 63 69 66 69 63 61 74 69 |ther spe|cificati|
|00002fb0| 6f 6e 73 2e 20 20 54 68 | 65 20 69 6e 69 74 69 61 |ons. Th|e initia|
|00002fc0| 6c 20 73 65 74 74 69 6e | 67 73 20 61 72 65 20 0d |l settin|gs are .|
|00002fd0| 20 20 20 20 20 64 65 72 | 69 76 65 64 20 66 72 6f | der|ived fro|
|00002fe0| 6d 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 50 |m the pr|evious P|
|00002ff0| 72 4a 6f 62 44 69 61 6c | 6f 67 20 63 61 6c 6c 20 |rJobDial|og call |
|00003000| 28 6f 72 20 69 6e 69 74 | 69 61 6c 20 64 65 66 61 |(or init|ial defa|
|00003010| 75 6c 74 20 76 61 6c 75 | 65 73 29 20 0d 20 20 20 |ult valu|es) . |
|00003020| 20 20 65 78 63 65 70 74 | 20 74 68 65 20 70 61 67 | except| the pag|
|00003030| 65 20 72 61 6e 67 65 20 | 77 68 69 63 68 20 69 73 |e range |which is|
|00003040| 20 73 65 74 20 74 6f 20 | 41 4c 4c 2c 20 61 6e 64 | set to |ALL, and|
|00003050| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00003060| 6f 70 69 65 73 20 77 68 | 69 63 68 20 0d 20 20 20 |opies wh|ich . |
|00003070| 20 20 69 73 20 73 65 74 | 20 74 6f 20 4f 4e 45 2e | is set| to ONE.|
|00003080| 0d 20 20 6f 20 20 49 66 | 20 74 68 65 20 75 73 65 |. o If| the use|
|00003090| 72 20 63 6f 6e 66 69 72 | 6d 73 20 74 68 65 20 64 |r confir|ms the d|
|000030a0| 69 61 6c 6f 67 2c 20 50 | 72 56 61 6c 69 64 61 74 |ialog, P|rValidat|
|000030b0| 65 20 69 73 20 63 61 6c | 6c 65 64 2c 20 74 68 65 |e is cal|led, the|
|000030c0| 20 70 72 69 6e 74 20 72 | 65 63 6f 72 64 20 69 73 | print r|ecord is|
|000030d0| 20 0d 20 20 20 20 20 75 | 70 64 61 74 65 64 2c 20 | . u|pdated, |
|000030e0| 61 6e 64 20 74 68 65 20 | 72 6f 75 74 69 6e 65 20 |and the |routine |
|000030f0| 72 65 74 75 72 6e 73 20 | 54 52 55 45 2e 0d 20 20 |returns |TRUE.. |
|00003100| 6f 20 20 49 66 20 74 68 | 65 20 75 73 65 72 20 63 |o If th|e user c|
|00003110| 61 6e 63 65 6c 73 20 74 | 68 65 20 64 69 61 6c 6f |ancels t|he dialo|
|00003120| 67 2c 20 74 68 65 20 70 | 72 69 6e 74 20 72 65 63 |g, the p|rint rec|
|00003130| 6f 72 64 20 69 73 20 6c | 65 66 74 20 75 6e 63 68 |ord is l|eft unch|
|00003140| 61 6e 67 65 64 2c 20 61 | 6e 64 20 74 68 65 20 0d |anged, a|nd the .|
|00003150| 20 20 20 20 20 72 6f 75 | 74 69 6e 65 20 72 65 74 | rou|tine ret|
|00003160| 75 72 6e 73 20 46 41 4c | 53 45 2e 0d 0d 4e 6f 74 |urns FAL|SE...Not|
|00003170| 65 3a 20 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |e: The |followin|
|00003180| 67 20 61 72 65 20 69 74 | 65 6d 73 20 74 79 70 69 |g are it|ems typi|
|00003190| 63 61 6c 6c 79 20 66 6f | 75 6e 64 20 69 6e 20 70 |cally fo|und in p|
|000031a0| 72 69 6e 74 65 72 20 6a | 6f 62 20 64 69 61 6c 6f |rinter j|ob dialo|
|000031b0| 67 73 3a 0d 0d 20 20 6f | 20 20 50 72 69 6e 74 20 |gs:.. o| Print |
|000031c0| 51 75 61 6c 69 74 79 20 | 28 42 65 73 74 2c 20 46 |Quality |(Best, F|
|000031d0| 61 73 74 65 72 2c 20 44 | 72 61 66 74 2c 20 65 74 |aster, D|raft, et|
|000031e0| 63 2e 29 0d 20 20 6f 20 | 20 43 6f 6c 6f 72 20 6f |c.). o | Color o|
|000031f0| 70 74 69 6f 6e 0d 20 20 | 6f 20 20 50 61 67 65 73 |ption. |o Pages|
|00003200| 20 28 41 6c 6c 2c 20 52 | 61 6e 67 65 29 0d 20 20 | (All, R|ange). |
|00003210| 6f 20 20 43 6f 70 69 65 | 73 0d 20 20 6f 20 20 50 |o Copie|s. o P|
|00003220| 61 70 65 72 20 53 6f 75 | 72 63 65 20 28 70 61 70 |aper Sou|rce (pap|
|00003230| 65 72 20 63 61 73 73 65 | 74 74 65 2c 20 6d 61 6e |er casse|tte, man|
|00003240| 75 61 6c 20 66 65 65 64 | 29 0d 0d 45 76 65 72 79 |ual feed|)..Every|
|00003250| 20 70 72 69 6e 74 65 72 | 20 6a 6f 62 20 64 69 61 | printer| job dia|
|00003260| 6c 6f 67 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |log shou|ld have |
|00003270| 61 6e 20 4f 4b 20 62 75 | 74 74 6f 6e 20 28 64 65 |an OK bu|tton (de|
|00003280| 66 61 75 6c 74 29 20 61 | 6e 64 20 61 20 43 61 6e |fault) a|nd a Can|
|00003290| 63 65 6c 20 0d 62 75 74 | 74 6f 6e 2e 0d 0d 0d 50 |cel .but|ton....P|
|000032a0| 72 50 69 78 65 6c 4d 61 | 70 20 20 20 20 20 20 20 |rPixelMa|p |
|000032b0| 20 20 20 20 20 20 20 20 | 28 24 30 44 31 33 29 0d | |($0D13).|
|000032c0| 0d 44 65 73 63 72 69 70 | 74 69 6f 6e 3a 0d 20 20 |.Descrip|tion:. |
|000032d0| 20 20 50 72 69 6e 74 73 | 20 61 6c 6c 20 6f 72 20 | Prints| all or |
|000032e0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 73 70 65 63 |part of |the spec|
|000032f0| 69 66 69 65 64 20 70 69 | 78 65 6c 6d 61 70 2e 0d |ified pi|xelmap..|
|00003300| 0d 50 61 73 73 65 64 3a | 0d 20 20 20 20 73 72 63 |.Passed:|. src|
|00003310| 4c 6f 63 50 74 72 20 20 | 20 20 20 20 20 20 20 20 |LocPtr | |
|00003320| 20 20 4c 4f 4e 47 20 20 | 20 20 20 20 20 20 50 6f | LONG | Po|
|00003330| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 73 6f 75 |inter to| the sou|
|00003340| 72 63 65 20 4c 6f 63 49 | 6e 66 6f 20 77 68 69 63 |rce LocI|nfo whic|
|00003350| 68 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |h. | |
|00003360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003370| 20 20 20 20 20 20 20 63 | 6f 6e 74 61 69 6e 73 20 | c|ontains |
|00003380| 74 68 65 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |the poin|ter to t|
|00003390| 68 65 20 70 69 78 65 6c | 6d 61 70 2e 0d 20 20 20 |he pixel|map.. |
|000033a0| 20 73 72 63 52 65 63 74 | 50 74 72 20 20 20 20 20 | srcRect|Ptr |
|000033b0| 20 20 20 20 20 20 4c 4f | 4e 47 20 20 20 20 20 20 | LO|NG |
|000033c0| 20 20 50 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 | Pointe|r to the|
|000033d0| 20 72 65 63 74 61 6e 67 | 6c 65 20 77 68 69 63 68 | rectang|le which|
|000033e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000033f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003400| 20 20 20 20 20 20 65 6e | 63 6c 6f 73 65 73 20 74 | en|closes t|
|00003410| 68 65 20 70 69 78 65 6c | 6d 61 70 20 74 6f 20 62 |he pixel|map to b|
|00003420| 65 20 70 72 69 6e 74 65 | 64 2e 0d 20 20 20 20 63 |e printe|d.. c|
|00003430| 6f 6c 6f 72 46 6c 61 67 | 20 20 20 20 20 20 20 20 |olorFlag| |
|00003440| 20 20 20 20 57 4f 52 44 | 20 20 20 20 20 20 20 20 | WORD| |
|00003450| 42 6f 6f 6c 65 61 6e 3b | 20 46 41 4c 53 45 20 69 |Boolean;| FALSE i|
|00003460| 66 20 62 6c 61 63 6b 20 | 61 6e 64 20 77 68 69 74 |f black |and whit|
|00003470| 65 2c 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e,. | |
|00003480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003490| 20 20 20 20 20 20 20 20 | 54 52 55 45 20 69 66 20 | |TRUE if |
|000034a0| 63 6f 6c 6f 72 2e 0d 0d | 52 65 74 75 72 6e 65 64 |color...|Returned|
|000034b0| 3a 0d 20 20 20 20 4e 6f | 6e 65 0d 0d 50 65 72 66 |:. No|ne..Perf|
|000034c0| 6f 72 6d 73 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |orms the| followi|
|000034d0| 6e 67 3a 0d 20 20 6f 20 | 20 43 61 6c 6c 73 20 44 |ng:. o | Calls D|
|000034e0| 65 76 49 73 49 74 53 61 | 66 65 20 28 70 6f 72 74 |evIsItSa|fe (port|
|000034f0| 20 64 72 69 76 65 72 20 | 63 61 6c 6c 29 20 74 6f | driver |call) to|
|00003500| 20 76 65 72 69 66 79 20 | 74 68 61 74 20 74 68 65 | verify |that the|
|00003510| 20 70 6f 72 74 20 69 74 | 20 66 75 6e 63 74 69 6f | port it| functio|
|00003520| 6e 69 6e 67 20 0d 20 20 | 20 20 20 61 6e 64 20 69 |ning . | and i|
|00003530| 74 20 69 73 20 73 61 66 | 65 20 74 6f 20 70 72 6f |t is saf|e to pro|
|00003540| 63 65 65 64 2e 20 20 49 | 66 20 69 74 20 69 73 20 |ceed. I|f it is |
|00003550| 6e 6f 74 20 66 75 6e 63 | 74 69 6f 6e 69 6e 67 2c |not func|tioning,|
|00003560| 20 73 65 74 20 74 68 65 | 20 69 6e 74 65 72 6e 61 | set the| interna|
|00003570| 6c 20 0d 20 20 20 20 20 | 65 72 72 6f 72 20 63 6f |l . |error co|
|00003580| 64 65 20 74 6f 20 24 31 | 33 30 32 20 28 50 6f 72 |de to $1|302 (Por|
|00003590| 74 20 4e 6f 74 20 4f 6e | 29 20 61 6e 64 20 72 65 |t Not On|) and re|
|000035a0| 74 75 72 6e 20 77 69 74 | 68 20 61 6e 20 65 72 72 |turn wit|h an err|
|000035b0| 6f 72 20 73 74 61 74 75 | 73 2e 0d 20 20 6f 20 20 |or statu|s.. o |
|000035c0| 53 61 76 65 73 20 74 68 | 65 20 63 75 72 72 65 6e |Saves th|e curren|
|000035d0| 74 20 70 6f 72 74 2e 0d | 20 20 6f 20 20 54 75 72 |t port..| o Tur|
|000035e0| 6e 73 20 6f 6e 20 74 68 | 65 20 77 61 74 63 68 20 |ns on th|e watch |
|000035f0| 63 75 72 73 6f 72 20 74 | 6f 20 73 69 67 6e 61 6c |cursor t|o signal|
|00003600| 20 74 68 65 20 75 73 65 | 72 20 74 68 61 74 20 69 | the use|r that i|
|00003610| 74 20 77 69 6c 6c 20 74 | 61 6b 65 20 73 6f 6d 65 |t will t|ake some|
|00003620| 20 74 69 6d 65 2e 0d 20 | 20 6f 20 20 43 6c 65 61 | time.. | o Clea|
|00003630| 72 73 20 74 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |rs the i|nternal |
|00003640| 65 72 72 6f 72 20 63 6f | 64 65 20 28 64 65 66 61 |error co|de (defa|
|00003650| 75 6c 74 2c 20 69 66 20 | 6e 6f 20 65 72 72 6f 72 |ult, if |no error|
|00003660| 73 20 6f 63 63 75 72 29 | 2e 0d 20 20 6f 20 20 47 |s occur)|.. o G|
|00003670| 65 74 73 20 61 20 6e 65 | 77 20 68 61 6e 64 6c 65 |ets a ne|w handle|
|00003680| 20 66 6f 72 20 61 20 70 | 72 69 6e 74 20 72 65 63 | for a p|rint rec|
|00003690| 6f 72 64 20 61 6e 64 20 | 73 65 74 20 69 74 20 74 |ord and |set it t|
|000036a0| 6f 20 74 68 65 20 64 65 | 66 61 75 6c 74 73 20 62 |o the de|faults b|
|000036b0| 79 20 63 61 6c 6c 69 6e | 67 20 0d 20 20 20 20 20 |y callin|g . |
|000036c0| 50 72 44 65 66 61 75 6c | 74 2e 0d 20 20 6f 20 20 |PrDefaul|t.. o |
|000036d0| 49 66 20 63 6f 6c 6f 72 | 46 6c 61 67 20 69 73 20 |If color|Flag is |
|000036e0| 73 65 74 2c 20 73 65 74 | 73 20 62 69 74 20 35 20 |set, set|s bit 5 |
|000036f0| 6f 66 20 77 64 65 76 20 | 69 6e 20 70 72 53 74 6c |of wdev |in prStl|
|00003700| 20 6f 66 20 74 68 65 20 | 70 72 69 6e 74 20 72 65 | of the |print re|
|00003710| 63 6f 72 64 2e 0d 20 20 | 6f 20 20 44 6f 20 61 6e |cord.. |o Do an|
|00003720| 79 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |y initia|lization|
|00003730| 20 74 68 61 74 20 6d 69 | 67 68 74 20 62 65 20 6e | that mi|ght be n|
|00003740| 65 65 64 65 64 20 62 79 | 20 74 68 65 20 64 72 69 |eeded by| the dri|
|00003750| 76 65 72 2e 0d 20 20 6f | 20 20 44 65 74 65 72 6d |ver.. o| Determ|
|00003760| 69 6e 65 20 74 68 65 20 | 69 6e 74 65 72 73 65 63 |ine the |intersec|
|00003770| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 74 77 6f 20 |tion of |the two |
|00003780| 72 65 63 74 61 6e 67 6c | 65 73 20 28 72 65 63 74 |rectangl|es (rect|
|00003790| 61 6e 67 6c 65 20 70 6f | 69 6e 74 65 64 20 74 6f |angle po|inted to|
|000037a0| 20 62 79 20 0d 20 20 20 | 20 20 73 72 63 52 65 63 | by . | srcRec|
|000037b0| 74 50 74 72 20 61 6e 64 | 20 74 68 65 20 70 69 78 |tPtr and| the pix|
|000037c0| 65 6c 6d 61 70 27 73 20 | 62 6f 75 6e 64 61 72 79 |elmap's |boundary|
|000037d0| 20 72 65 63 74 61 6e 67 | 6c 65 20 66 72 6f 6d 20 | rectang|le from |
|000037e0| 73 72 63 4c 6f 63 50 74 | 72 29 20 61 6e 64 20 69 |srcLocPt|r) and i|
|000037f0| 66 20 0d 20 20 20 20 20 | 74 68 65 72 65 20 69 73 |f . |there is|
|00003800| 20 6e 6f 20 69 6e 74 65 | 72 73 65 63 74 69 6f 6e | no inte|rsection|
|00003810| 2c 20 74 68 65 6e 20 6e | 6f 74 68 69 6e 67 20 69 |, then n|othing i|
|00003820| 73 20 74 6f 20 62 65 20 | 70 72 69 6e 74 65 64 2e |s to be |printed.|
|00003830| 0d 20 20 6f 20 20 50 72 | 69 6e 74 20 74 68 65 20 |. o Pr|int the |
|00003840| 70 69 78 65 6c 20 69 6d | 61 67 65 20 77 68 69 63 |pixel im|age whic|
|00003850| 68 20 69 73 20 77 69 74 | 68 69 6e 20 74 68 65 20 |h is wit|hin the |
|00003860| 69 6e 74 65 72 73 65 63 | 74 69 6f 6e 20 6f 66 20 |intersec|tion of |
|00003870| 74 68 65 20 74 77 6f 20 | 0d 20 20 20 20 20 72 65 |the two |. re|
|00003880| 63 74 61 6e 67 6c 65 73 | 2e 0d 20 20 6f 20 20 43 |ctangles|.. o C|
|00003890| 61 75 73 65 20 61 20 70 | 61 67 65 20 65 6a 65 63 |ause a p|age ejec|
|000038a0| 74 20 74 6f 20 6f 63 63 | 75 72 20 6f 6e 20 74 68 |t to occ|ur on th|
|000038b0| 65 20 70 72 69 6e 74 65 | 72 2e 0d 20 20 6f 20 20 |e printe|r.. o |
|000038c0| 44 6f 20 61 6e 79 20 63 | 6c 65 61 6e 20 75 70 20 |Do any c|lean up |
|000038d0| 74 68 61 74 20 69 73 20 | 6e 65 65 64 65 64 2e 0d |that is |needed..|
|000038e0| 20 20 6f 20 20 54 75 72 | 6e 20 6f 66 66 20 74 68 | o Tur|n off th|
|000038f0| 65 20 77 61 74 63 68 20 | 63 75 72 73 6f 72 20 62 |e watch |cursor b|
|00003900| 79 20 63 61 6c 6c 69 6e | 67 20 49 6e 69 74 43 75 |y callin|g InitCu|
|00003910| 72 73 6f 72 2e 0d 20 20 | 6f 20 20 52 65 73 74 6f |rsor.. |o Resto|
|00003920| 72 65 20 74 68 65 20 70 | 6f 72 74 20 62 79 20 63 |re the p|ort by c|
|00003930| 61 6c 6c 69 6e 67 20 53 | 65 74 50 6f 72 74 2e 0d |alling S|etPort..|
|00003940| 0d 0d 50 72 4f 70 65 6e | 44 6f 63 20 20 20 20 20 |..PrOpen|Doc |
|00003950| 20 20 20 20 20 20 20 20 | 20 20 20 28 24 30 45 31 | | ($0E1|
|00003960| 33 29 0d 0d 44 65 73 63 | 72 69 70 74 69 6f 6e 3a |3)..Desc|ription:|
|00003970| 0d 20 20 20 20 54 68 69 | 73 20 72 6f 75 74 69 6e |. Thi|s routin|
|00003980| 65 20 69 6e 69 74 69 61 | 6c 69 7a 65 73 20 74 68 |e initia|lizes th|
|00003990| 65 20 74 68 69 6e 67 73 | 20 6e 65 65 64 65 64 20 |e things| needed |
|000039a0| 74 6f 20 6f 70 65 6e 20 | 61 20 64 6f 63 75 6d 65 |to open |a docume|
|000039b0| 6e 74 2e 20 20 49 6e 20 | 64 65 66 65 72 72 65 64 |nt. In |deferred|
|000039c0| 20 0d 20 20 20 20 6d 6f | 64 65 2c 20 69 74 20 65 | . mo|de, it e|
|000039d0| 73 74 61 62 6c 69 73 68 | 65 73 20 61 20 47 72 61 |stablish|es a Gra|
|000039e0| 66 50 6f 72 74 20 61 6e | 64 20 6d 61 6b 65 73 20 |fPort an|d makes |
|000039f0| 69 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 70 |it the c|urrent p|
|00003a00| 6f 72 74 20 66 6f 72 20 | 70 72 69 6e 74 69 6e 67 |ort for |printing|
|00003a10| 2e 0d 0d 50 61 73 73 65 | 64 3a 0d 20 20 20 20 50 |...Passe|d:. P|
|00003a20| 72 69 6e 74 52 65 63 6f | 72 64 48 61 6e 64 6c 65 |rintReco|rdHandle|
|00003a30| 20 20 20 20 4c 4f 4e 47 | 20 20 20 20 20 20 20 20 | LONG| |
|00003a40| 48 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 70 72 |Handle t|o the pr|
|00003a50| 69 6e 74 20 72 65 63 6f | 72 64 0d 20 20 20 20 50 |int reco|rd. P|
|00003a60| 72 69 6e 74 65 72 50 6f | 72 74 50 74 72 20 20 20 |rinterPo|rtPtr |
|00003a70| 20 20 20 20 4c 4f 4e 47 | 20 20 20 20 20 20 20 20 | LONG| |
|00003a80| 50 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 47 |Pointer |to the G|
|00003a90| 72 61 66 50 6f 72 74 2c | 20 69 66 20 64 65 73 69 |rafPort,| if desi|
|00003aa0| 72 65 64 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |red,. | |
|00003ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ac0| 20 20 20 20 20 20 20 20 | 20 20 7a 65 72 6f 20 74 | | zero t|
|00003ad0| 6f 20 61 6c 6c 6f 63 61 | 74 65 20 61 20 6e 65 77 |o alloca|te a new|
|00003ae0| 20 47 72 61 66 50 6f 72 | 74 0d 52 65 74 75 72 6e | GrafPor|t.Return|
|00003af0| 65 64 3a 0d 20 20 20 20 | 50 72 69 6e 74 65 72 50 |ed:. |PrinterP|
|00003b00| 6f 72 74 50 74 72 52 65 | 74 20 20 20 20 4c 4f 4e |ortPtrRe|t LON|
|00003b10| 47 20 20 20 20 20 20 20 | 20 50 6f 69 6e 74 65 72 |G | Pointer|
|00003b20| 20 74 6f 20 74 68 65 20 | 47 72 61 66 50 6f 72 74 | to the |GrafPort|
|00003b30| 20 69 66 20 74 68 65 0d | 20 20 20 20 20 20 20 20 | if the.| |
|00003b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 72 69 | | Pri|
|00003b60| 6e 74 65 72 50 6f 72 74 | 50 74 72 20 77 61 73 20 |nterPort|Ptr was |
|00003b70| 7a 65 72 6f 0d 0d 50 65 | 72 66 6f 72 6d 73 20 74 |zero..Pe|rforms t|
|00003b80| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0d 20 20 |he follo|wing:. |
|00003b90| 6f 20 20 43 61 6c 6c 73 | 20 44 65 76 49 73 49 74 |o Calls| DevIsIt|
|00003ba0| 53 61 66 65 20 28 70 6f | 72 74 20 64 72 69 76 65 |Safe (po|rt drive|
|00003bb0| 72 20 63 61 6c 6c 29 20 | 74 6f 20 76 65 72 69 66 |r call) |to verif|
|00003bc0| 79 20 74 68 61 74 20 74 | 68 65 20 70 6f 72 74 20 |y that t|he port |
|00003bd0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 69 6e 67 20 0d |is funct|ioning .|
|00003be0| 20 20 20 20 20 61 6e 64 | 20 69 74 20 69 73 20 73 | and| it is s|
|00003bf0| 61 66 65 20 74 6f 20 70 | 72 6f 63 65 65 64 2e 0d |afe to p|roceed..|
|00003c00| 20 20 6f 20 20 54 75 72 | 6e 73 20 6f 6e 20 74 68 | o Tur|ns on th|
|00003c10| 65 20 77 61 74 63 68 20 | 63 75 72 73 6f 72 20 74 |e watch |cursor t|
|00003c20| 6f 20 73 69 67 6e 61 6c | 20 74 68 65 20 75 73 65 |o signal| the use|
|00003c30| 72 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 74 |r that i|t will t|
|00003c40| 61 6b 65 20 73 6f 6d 65 | 20 74 69 6d 65 2e 0d 20 |ake some| time.. |
|00003c50| 20 6f 20 20 56 61 6c 69 | 64 61 74 65 73 20 74 68 | o Vali|dates th|
|00003c60| 65 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 20 70 |e print |record p|
|00003c70| 61 73 73 65 64 20 62 79 | 20 20 63 61 6c 6c 69 6e |assed by| callin|
|00003c80| 67 20 50 72 56 61 6c 69 | 64 61 74 65 2e 0d 20 20 |g PrVali|date.. |
|00003c90| 6f 20 20 43 6c 65 61 72 | 73 20 74 68 65 20 69 6e |o Clear|s the in|
|00003ca0| 74 65 72 6e 61 6c 20 65 | 72 72 6f 72 20 63 6f 64 |ternal e|rror cod|
|00003cb0| 65 20 28 64 65 66 61 75 | 6c 74 2c 20 69 66 20 6e |e (defau|lt, if n|
|00003cc0| 6f 74 68 69 6e 67 20 68 | 61 70 70 65 6e 73 29 2e |othing h|appens).|
|00003cd0| 0d 20 20 6f 20 20 50 75 | 74 73 20 75 70 20 61 20 |. o Pu|ts up a |
|00003ce0| 64 69 61 6c 6f 67 20 69 | 6e 64 69 63 61 74 69 6e |dialog i|ndicatin|
|00003cf0| 67 20 74 68 61 74 20 70 | 72 69 6e 74 69 6e 67 20 |g that p|rinting |
|00003d00| 69 73 20 6f 63 63 75 72 | 72 69 6e 67 20 28 6f 72 |is occur|ring (or|
|00003d10| 20 70 72 65 70 61 72 69 | 6e 67 20 74 6f 20 0d 20 | prepari|ng to . |
|00003d20| 20 20 20 20 70 72 69 6e | 74 29 2e 0d 20 20 6f 20 | prin|t).. o |
|00003d30| 20 49 66 20 74 68 65 20 | 75 73 65 72 20 6e 65 65 | If the |user nee|
|00003d40| 64 73 20 61 20 47 72 61 | 66 50 6f 72 74 2c 20 63 |ds a Gra|fPort, c|
|00003d50| 72 65 61 74 65 20 6f 6e | 65 20 61 6e 64 20 69 6e |reate on|e and in|
|00003d60| 74 65 72 6e 61 6c 6c 79 | 20 6e 6f 74 65 20 74 68 |ternally| note th|
|00003d70| 61 74 20 6f 6e 65 20 77 | 61 73 20 0d 20 20 20 20 |at one w|as . |
|00003d80| 20 63 72 65 61 74 65 64 | 20 28 50 72 43 6c 6f 73 | created| (PrClos|
|00003d90| 65 44 6f 63 20 77 69 6c | 6c 20 6e 65 65 64 20 74 |eDoc wil|l need t|
|00003da0| 6f 20 6b 6e 6f 77 20 74 | 68 61 74 20 6f 6e 65 20 |o know t|hat one |
|00003db0| 77 61 73 20 63 72 65 61 | 74 65 64 20 68 65 72 65 |was crea|ted here|
|00003dc0| 29 2e 0d 20 20 6f 20 20 | 49 6e 69 74 69 61 6c 69 |).. o |Initiali|
|00003dd0| 7a 65 73 20 70 61 72 61 | 6d 65 74 65 72 73 20 28 |zes para|meters (|
|00003de0| 69 2e 65 2e 2c 20 70 61 | 67 65 20 6e 75 6d 62 65 |i.e., pa|ge numbe|
|00003df0| 72 2c 20 64 6f 63 75 6d | 65 6e 74 20 6e 75 6d 62 |r, docum|ent numb|
|00003e00| 65 72 2c 20 65 74 63 2e | 29 2e 0d 20 20 6f 20 20 |er, etc.|).. o |
|00003e10| 49 66 20 64 65 66 65 72 | 72 65 64 20 6d 6f 64 65 |If defer|red mode|
|00003e20| 2c 20 63 72 65 61 74 65 | 20 61 6e 20 69 6e 69 74 |, create| an init|
|00003e30| 69 61 6c 20 70 61 67 65 | 20 6c 69 73 74 20 28 61 |ial page| list (a|
|00003e40| 6e 20 61 72 72 61 79 20 | 6f 66 20 68 61 6e 64 6c |n array |of handl|
|00003e50| 65 73 20 74 6f 20 0d 20 | 20 20 20 20 70 69 63 74 |es to . | pict|
|00003e60| 75 72 65 73 29 20 66 6f | 72 20 32 30 20 70 61 67 |ures) fo|r 20 pag|
|00003e70| 65 73 20 28 61 72 62 69 | 74 72 61 72 79 20 6e 75 |es (arbi|trary nu|
|00003e80| 6d 62 65 72 20 74 6f 20 | 73 74 61 72 74 29 2e 0d |mber to |start)..|
|00003e90| 20 20 6f 20 20 44 6f 20 | 6f 74 68 65 72 20 69 6e | o Do |other in|
|00003ea0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 74 68 61 |itializa|tion tha|
|00003eb0| 74 20 6d 69 67 68 74 20 | 62 65 20 6e 65 65 64 65 |t might |be neede|
|00003ec0| 64 20 74 6f 20 73 74 61 | 72 74 20 61 20 70 72 69 |d to sta|rt a pri|
|00003ed0| 6e 74 20 6a 6f 62 2e 0d | 0d 50 6f 73 73 69 62 6c |nt job..|.Possibl|
|00003ee0| 65 20 65 72 72 6f 72 73 | 3a 0d 20 20 20 20 20 20 |e errors|:. |
|00003ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f00| 20 20 20 24 31 33 30 32 | 20 20 20 20 20 20 20 49 | $1302| I|
|00003f10| 6e 64 69 63 61 74 65 73 | 20 50 6f 72 74 20 4e 6f |ndicates| Port No|
|00003f20| 74 20 4f 6e 0d 0d 0d 50 | 72 43 6c 6f 73 65 44 6f |t On...P|rCloseDo|
|00003f30| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00003f40| 28 24 30 46 31 33 29 0d | 0d 44 65 73 63 72 69 70 |($0F13).|.Descrip|
|00003f50| 74 69 6f 6e 3a 0d 20 20 | 20 20 43 6c 6f 73 65 73 |tion:. | Closes|
|00003f60| 20 74 68 65 20 47 72 61 | 66 50 6f 72 74 20 62 65 | the Gra|fPort be|
|00003f70| 69 6e 67 20 75 73 65 64 | 20 66 6f 72 20 70 72 69 |ing used| for pri|
|00003f80| 6e 74 69 6e 67 2e 20 20 | 46 6f 72 20 69 6d 6d 65 |nting. |For imme|
|00003f90| 64 69 61 74 65 20 6d 6f | 64 65 2c 20 74 68 69 73 |diate mo|de, this|
|00003fa0| 20 0d 20 20 20 20 72 6f | 75 74 69 6e 65 20 65 6e | . ro|utine en|
|00003fb0| 64 73 20 74 68 65 20 70 | 72 69 6e 74 69 6e 67 20 |ds the p|rinting |
|00003fc0| 6a 6f 62 2e 20 20 46 6f | 72 20 64 65 66 65 72 72 |job. Fo|r deferr|
|00003fd0| 65 64 20 6d 6f 64 65 2c | 20 74 68 69 73 20 72 6f |ed mode,| this ro|
|00003fe0| 75 74 69 6e 65 20 65 6e | 64 73 20 74 68 65 20 0d |utine en|ds the .|
|00003ff0| 20 20 20 20 70 72 6f 63 | 65 73 73 20 61 6c 6c 6f | proc|ess allo|
|00004000| 77 69 6e 67 20 74 68 65 | 20 6a 6f 62 20 74 6f 20 |wing the| job to |
|00004010| 62 65 20 70 72 69 6e 74 | 65 64 2e 0d 0d 50 61 73 |be print|ed...Pas|
|00004020| 73 65 64 3a 0d 20 20 20 | 20 50 72 69 6e 74 47 72 |sed:. | PrintGr|
|00004030| 61 66 50 6f 72 74 50 74 | 72 20 20 20 20 20 4c 4f |afPortPt|r LO|
|00004040| 4e 47 20 20 20 20 20 20 | 20 20 50 6f 69 6e 74 65 |NG | Pointe|
|00004050| 72 20 74 6f 20 74 68 65 | 20 47 72 61 66 50 6f 72 |r to the| GrafPor|
|00004060| 74 20 75 73 65 64 20 66 | 6f 72 20 70 72 69 6e 74 |t used f|or print|
|00004070| 69 6e 67 0d 0d 52 65 74 | 75 72 6e 65 64 3a 0d 20 |ing..Ret|urned:. |
|00004080| 20 20 20 4e 6f 6e 65 0d | 0d 50 65 72 66 6f 72 6d | None.|.Perform|
|00004090| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 3a |s the fo|llowing:|
|000040a0| 0d 20 20 6f 20 20 43 68 | 65 63 6b 73 20 74 68 61 |. o Ch|ecks tha|
|000040b0| 74 20 74 68 65 20 6c 61 | 73 74 20 70 72 69 6e 74 |t the la|st print|
|000040c0| 20 64 72 69 76 65 72 20 | 63 61 6c 6c 20 64 69 64 | driver |call did|
|000040d0| 20 6e 6f 74 20 63 61 75 | 73 65 20 61 20 50 6f 72 | not cau|se a Por|
|000040e0| 74 20 4e 6f 74 20 4f 6e | 20 65 72 72 6f 72 2e 20 |t Not On| error. |
|000040f0| 20 0d 20 20 20 20 20 49 | 66 20 74 68 65 20 65 72 | . I|f the er|
|00004100| 72 6f 72 20 6f 63 63 75 | 72 72 65 64 2c 20 64 6f |ror occu|rred, do|
|00004110| 20 6e 6f 74 68 69 6e 67 | 20 61 6e 64 20 72 65 74 | nothing| and ret|
|00004120| 75 72 6e 2e 0d 20 20 6f | 20 20 43 61 6c 6c 20 43 |urn.. o| Call C|
|00004130| 6c 6f 73 65 50 6f 72 74 | 20 28 70 6f 72 74 20 64 |losePort| (port d|
|00004140| 72 69 76 65 72 20 63 61 | 6c 6c 29 20 74 6f 20 63 |river ca|ll) to c|
|00004150| 6c 6f 73 65 20 74 68 65 | 20 70 6f 72 74 2e 0d 20 |lose the| port.. |
|00004160| 20 6f 20 20 49 66 20 74 | 68 65 20 64 72 69 76 65 | o If t|he drive|
|00004170| 72 20 61 6c 6c 6f 63 61 | 74 65 64 20 61 20 47 72 |r alloca|ted a Gr|
|00004180| 61 66 50 6f 72 74 20 69 | 6e 20 50 72 4f 70 65 6e |afPort i|n PrOpen|
|00004190| 44 6f 63 2c 20 64 69 73 | 70 6f 73 65 20 6f 66 20 |Doc, dis|pose of |
|000041a0| 69 74 2e 0d 20 20 6f 20 | 20 49 66 20 69 6e 20 69 |it.. o | If in i|
|000041b0| 6d 6d 65 64 69 61 74 65 | 20 6d 6f 64 65 2c 20 64 |mmediate| mode, d|
|000041c0| 6f 20 77 68 61 74 20 69 | 73 20 6e 65 65 64 65 64 |o what i|s needed|
|000041d0| 20 74 6f 20 73 68 75 74 | 20 74 68 69 6e 67 73 20 | to shut| things |
|000041e0| 64 6f 77 6e 2e 0d 20 20 | 6f 20 20 54 61 6b 65 73 |down.. |o Takes|
|000041f0| 20 64 6f 77 6e 20 74 68 | 65 20 69 6e 66 6f 72 6d | down th|e inform|
|00004200| 61 74 69 6f 6e 20 64 69 | 61 6c 6f 67 20 62 6f 78 |ation di|alog box|
|00004210| 20 66 72 6f 6d 20 50 72 | 4f 70 65 6e 44 6f 63 2e | from Pr|OpenDoc.|
|00004220| 0d 0d 0d 50 72 4f 70 65 | 6e 50 61 67 65 20 20 20 |...PrOpe|nPage |
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 24 31 30 | | ($10|
|00004240| 31 33 29 0d 0d 44 65 73 | 63 72 69 70 74 69 6f 6e |13)..Des|cription|
|00004250| 3a 0d 20 20 20 20 42 65 | 67 69 6e 73 20 61 20 6e |:. Be|gins a n|
|00004260| 65 77 20 70 61 67 65 20 | 6f 6e 6c 79 20 69 66 20 |ew page |only if |
|00004270| 74 68 65 20 70 61 67 65 | 20 66 61 6c 6c 73 20 77 |the page| falls w|
|00004280| 69 74 68 69 6e 20 74 68 | 65 20 70 61 67 65 20 72 |ithin th|e page r|
|00004290| 61 6e 67 65 20 73 70 65 | 63 69 66 69 65 64 20 69 |ange spe|cified i|
|000042a0| 6e 20 0d 20 20 20 20 74 | 68 65 20 6a 6f 62 20 73 |n . t|he job s|
|000042b0| 75 62 72 65 63 6f 72 64 | 2e 0d 0d 50 61 73 73 65 |ubrecord|...Passe|
|000042c0| 64 3a 0d 20 20 20 20 50 | 72 69 6e 74 47 72 61 66 |d:. P|rintGraf|
|000042d0| 50 6f 72 74 50 74 72 20 | 20 20 20 20 4c 4f 4e 47 |PortPtr | LONG|
|000042e0| 20 20 20 20 20 20 20 20 | 50 6f 69 6e 74 65 72 20 | |Pointer |
|000042f0| 74 6f 20 74 68 65 20 47 | 72 61 66 50 6f 72 74 20 |to the G|rafPort |
|00004300| 75 73 65 64 20 66 6f 72 | 20 70 72 69 6e 74 69 6e |used for| printin|
|00004310| 67 0d 20 20 20 20 50 61 | 67 65 46 72 61 6d 65 50 |g. Pa|geFrameP|
|00004320| 74 72 20 20 20 20 20 20 | 20 20 20 4c 4f 4e 47 20 |tr | LONG |
|00004330| 20 20 20 20 20 20 20 50 | 6f 69 6e 74 65 72 20 74 | P|ointer t|
|00004340| 6f 20 74 68 65 20 73 63 | 61 6c 69 6e 67 20 70 61 |o the sc|aling pa|
|00004350| 72 61 6d 65 74 65 72 2c | 0d 20 20 20 20 20 20 20 |rameter,|. |
|00004360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7a 65 | | ze|
|00004380| 72 6f 20 66 6f 72 20 6e | 6f 6e 65 2e 0d 52 65 74 |ro for n|one..Ret|
|00004390| 75 72 6e 65 64 3a 0d 20 | 20 20 20 4e 6f 6e 65 0d |urned:. | None.|
|000043a0| 0d 50 65 72 66 6f 72 6d | 73 20 74 68 65 20 66 6f |.Perform|s the fo|
|000043b0| 6c 6c 6f 77 69 6e 67 3a | 0d 20 20 6f 20 20 4c 6f |llowing:|. o Lo|
|000043c0| 6f 6b 73 20 61 74 20 74 | 68 65 20 64 72 69 76 65 |oks at t|he drive|
|000043d0| 72 27 73 20 69 6e 74 65 | 72 6e 61 6c 20 65 72 72 |r's inte|rnal err|
|000043e0| 6f 72 20 76 61 6c 75 65 | 2c 20 61 6e 64 20 69 66 |or value|, and if|
|000043f0| 20 61 6e 20 65 72 72 6f | 72 20 68 61 73 20 6f 63 | an erro|r has oc|
|00004400| 63 75 72 72 65 64 2c 20 | 0d 20 20 20 20 20 69 74 |curred, |. it|
|00004410| 20 72 65 74 75 72 6e 73 | 20 77 69 74 68 6f 75 74 | returns| without|
|00004420| 20 64 6f 69 6e 67 20 61 | 6e 79 74 68 69 6e 67 2e | doing a|nything.|
|00004430| 0d 20 20 6f 20 20 49 6e | 63 72 65 6d 65 6e 74 73 |. o In|crements|
|00004440| 20 74 68 65 20 70 61 67 | 65 20 6e 75 6d 62 65 72 | the pag|e number|
|00004450| 2e 0d 20 20 6f 20 20 43 | 61 6c 6c 73 20 53 65 74 |.. o C|alls Set|
|00004460| 50 6f 72 74 20 74 6f 20 | 6d 61 6b 65 20 74 68 65 |Port to |make the|
|00004470| 20 73 70 65 63 69 66 69 | 65 64 20 70 6f 72 74 20 | specifi|ed port |
|00004480| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 6f 72 74 |the curr|ent port|
|00004490| 2e 0d 20 20 6f 20 20 49 | 6e 69 74 69 61 6c 69 7a |.. o I|nitializ|
|000044a0| 65 73 20 74 68 65 20 70 | 6f 72 74 20 61 6e 64 20 |es the p|ort and |
|000044b0| 7a 65 72 6f 65 73 20 74 | 68 65 20 62 6f 75 6e 64 |zeroes t|he bound|
|000044c0| 61 72 79 20 72 65 63 74 | 61 6e 67 6c 65 20 73 6f |ary rect|angle so|
|000044d0| 20 6e 6f 20 61 63 74 75 | 61 6c 20 64 72 61 77 69 | no actu|al drawi|
|000044e0| 6e 67 20 0d 20 20 20 20 | 20 77 69 6c 6c 20 6f 63 |ng . | will oc|
|000044f0| 63 75 72 2e 0d 20 20 6f | 20 20 49 66 20 69 6d 6d |cur.. o| If imm|
|00004500| 65 64 69 61 74 65 20 6d | 6f 64 65 2c 20 74 68 65 |ediate m|ode, the|
|00004510| 6e 20 64 6f 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |n do the| followi|
|00004520| 6e 67 3a 0d 20 20 20 20 | 20 20 20 49 66 20 74 68 |ng:. | If th|
|00004530| 69 73 20 70 61 67 65 20 | 69 73 20 74 6f 20 62 65 |is page |is to be|
|00004540| 20 70 72 69 6e 74 65 64 | 2c 20 69 6e 73 74 61 6c | printed|, instal|
|00004550| 6c 20 69 6d 6d 65 64 69 | 61 74 65 20 6d 6f 64 65 |l immedi|ate mode|
|00004560| 20 70 72 6f 63 65 64 75 | 72 65 73 20 62 79 20 0d | procedu|res by .|
|00004570| 20 20 20 20 20 20 20 64 | 6f 69 6e 67 20 74 68 65 | d|oing the|
|00004580| 20 66 6f 6c 6c 6f 77 69 | 6e 67 3a 0d 20 20 20 20 | followi|ng:. |
|00004590| 20 20 20 20 20 6f 20 20 | 43 72 65 61 74 65 20 61 | o |Create a|
|000045a0| 20 70 72 6f 63 65 64 75 | 72 65 20 74 61 62 6c 65 | procedu|re table|
|000045b0| 20 28 67 65 74 20 74 68 | 65 20 73 74 61 6e 64 61 | (get th|e standa|
|000045c0| 72 64 20 70 72 6f 63 65 | 64 75 72 65 73 2e 20 66 |rd proce|dures. f|
|000045d0| 72 6f 6d 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |rom . | |
|000045e0| 20 53 65 74 53 74 64 50 | 72 6f 63 73 29 2e 0d 20 | SetStdP|rocs).. |
|000045f0| 20 20 20 20 20 20 20 20 | 6f 20 20 50 75 74 20 70 | |o Put p|
|00004600| 6f 69 6e 74 65 72 73 20 | 74 6f 20 79 6f 75 72 20 |ointers |to your |
|00004610| 70 72 6f 63 65 64 75 72 | 65 73 20 69 6e 74 6f 20 |procedur|es into |
|00004620| 74 68 65 20 74 61 62 6c | 65 20 61 6e 64 20 63 61 |the tabl|e and ca|
|00004630| 6c 6c 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |ll the. | |
|00004640| 20 20 20 51 75 69 63 6b | 44 72 61 77 20 49 49 20 | Quick|Draw II |
|00004650| 72 6f 75 74 69 6e 65 20 | 53 65 74 47 72 61 66 50 |routine |SetGrafP|
|00004660| 72 6f 63 73 2e 20 20 54 | 68 69 73 20 77 69 6c 6c |rocs. T|his will|
|00004670| 20 63 61 75 73 65 20 51 | 75 69 63 6b 44 72 61 77 | cause Q|uickDraw|
|00004680| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 49 49 20 |. | II |
|00004690| 63 61 6c 6c 73 20 74 6f | 20 70 72 69 6e 74 20 69 |calls to| print i|
|000046a0| 6e 73 74 65 61 64 20 6f | 66 20 77 72 69 74 69 6e |nstead o|f writin|
|000046b0| 67 20 74 6f 20 74 68 65 | 20 47 72 61 66 50 6f 72 |g to the| GrafPor|
|000046c0| 74 2e 0d 20 20 6f 20 20 | 49 66 20 64 65 66 65 72 |t.. o |If defer|
|000046d0| 72 65 64 20 6d 6f 64 65 | 2c 20 74 68 65 6e 20 64 |red mode|, then d|
|000046e0| 6f 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 3a |o the fo|llowing:|
|000046f0| 0d 20 20 20 20 20 20 20 | 6f 20 20 49 66 20 74 68 |. |o If th|
|00004700| 65 20 63 75 72 72 65 6e | 74 20 70 61 67 65 20 69 |e curren|t page i|
|00004710| 73 20 6f 75 74 20 6f 66 | 20 74 68 65 20 70 61 67 |s out of| the pag|
|00004720| 65 20 72 61 6e 67 65 2c | 20 74 68 65 6e 20 72 65 |e range,| then re|
|00004730| 74 75 72 6e 20 77 69 74 | 68 6f 75 74 20 0d 20 20 |turn wit|hout . |
|00004740| 20 20 20 20 20 20 20 20 | 64 6f 69 6e 67 20 61 6e | |doing an|
|00004750| 79 74 68 69 6e 67 20 66 | 75 72 74 68 65 72 2e 0d |ything f|urther..|
|00004760| 20 20 20 20 20 20 20 6f | 20 20 49 66 20 74 68 65 | o| If the|
|00004770| 20 75 73 65 72 20 70 61 | 73 73 65 73 20 68 69 73 | user pa|sses his|
|00004780| 20 6f 77 6e 20 50 61 67 | 65 46 72 61 6d 65 50 74 | own Pag|eFramePt|
|00004790| 72 20 2c 20 74 68 65 6e | 20 67 65 74 20 69 74 2e |r , then| get it.|
|000047a0| 0d 20 20 20 20 20 20 20 | 6f 20 20 4f 70 65 6e 20 |. |o Open |
|000047b0| 61 20 70 69 63 74 75 72 | 65 20 62 79 20 63 61 6c |a pictur|e by cal|
|000047c0| 6c 69 6e 67 20 4f 70 65 | 6e 50 69 63 74 75 72 65 |ling Ope|nPicture|
|000047d0| 20 61 6e 64 20 61 64 64 | 69 6e 67 20 69 74 73 20 | and add|ing its |
|000047e0| 68 61 6e 64 6c 65 20 74 | 6f 0d 20 20 20 20 20 20 |handle t|o. |
|000047f0| 20 20 20 20 74 68 65 20 | 70 61 67 65 20 6c 69 73 | the |page lis|
|00004800| 74 20 61 72 72 61 79 20 | 64 65 73 63 72 69 62 65 |t array |describe|
|00004810| 64 20 69 6e 20 50 72 4f | 70 65 6e 44 6f 63 2e 0d |d in PrO|penDoc..|
|00004820| 20 20 20 20 20 20 20 6f | 20 20 53 65 74 20 74 68 | o| Set th|
|00004830| 65 20 43 6c 69 70 52 67 | 6e 20 61 6e 64 20 56 69 |e ClipRg|n and Vi|
|00004840| 73 52 67 6e 20 74 6f 20 | 74 68 65 20 73 69 7a 69 |sRgn to |the sizi|
|00004850| 6e 67 20 66 72 61 6d 69 | 6e 67 20 72 65 63 74 61 |ng frami|ng recta|
|00004860| 6e 67 6c 65 0d 20 20 20 | 20 20 20 20 20 20 20 73 |ngle. | s|
|00004870| 70 65 63 69 66 69 65 64 | 20 62 79 20 50 61 67 65 |pecified| by Page|
|00004880| 46 72 61 6d 65 50 74 72 | 20 2c 20 6f 72 20 69 66 |FramePtr| , or if|
|00004890| 20 6e 6f 6e 65 20 77 61 | 73 20 73 70 65 63 69 66 | none wa|s specif|
|000048a0| 69 65 64 2c 20 74 6f 20 | 74 68 65 0d 20 20 20 20 |ied, to |the. |
|000048b0| 20 20 20 20 20 20 64 65 | 66 61 75 6c 74 20 6f 66 | de|fault of|
|000048c0| 20 72 50 61 67 65 2e 0d | 0d 50 72 43 6c 6f 73 65 | rPage..|.PrClose|
|000048d0| 50 61 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |Page | |
|000048e0| 20 20 28 24 31 31 31 33 | 29 0d 0d 44 65 73 63 72 | ($1113|)..Descr|
|000048f0| 69 70 74 69 6f 6e 3a 0d | 20 20 20 20 54 68 69 73 |iption:.| This|
|00004900| 20 73 69 67 6e 61 6c 73 | 20 74 68 65 20 65 6e 64 | signals| the end|
|00004910| 20 6f 66 20 61 20 70 61 | 67 65 2e 0d 0d 50 61 73 | of a pa|ge...Pas|
|00004920| 73 65 64 3a 0d 20 20 20 | 20 50 72 69 6e 74 47 72 |sed:. | PrintGr|
|00004930| 61 66 50 6f 72 74 50 74 | 72 20 20 20 20 20 4c 4f |afPortPt|r LO|
|00004940| 4e 47 20 20 20 20 20 20 | 20 20 50 6f 69 6e 74 65 |NG | Pointe|
|00004950| 72 20 74 6f 20 74 68 65 | 20 47 72 61 66 50 6f 72 |r to the| GrafPor|
|00004960| 74 20 75 73 65 64 20 66 | 6f 72 20 70 72 69 6e 74 |t used f|or print|
|00004970| 69 6e 67 0d 0d 52 65 74 | 75 72 6e 65 64 3a 0d 20 |ing..Ret|urned:. |
|00004980| 20 20 20 4e 6f 6e 65 0d | 0d 50 65 72 66 6f 72 6d | None.|.Perform|
|00004990| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 3a |s the fo|llowing:|
|000049a0| 0d 20 20 6f 20 20 4c 6f | 6f 6b 73 20 61 74 20 74 |. o Lo|oks at t|
|000049b0| 68 65 20 64 72 69 76 65 | 72 27 73 20 69 6e 74 65 |he drive|r's inte|
|000049c0| 72 6e 61 6c 20 65 72 72 | 6f 72 20 76 61 6c 75 65 |rnal err|or value|
|000049d0| 20 61 6e 64 20 69 66 20 | 61 20 50 6f 72 74 20 4e | and if |a Port N|
|000049e0| 6f 74 20 4f 6e 20 65 72 | 72 6f 72 20 68 61 73 20 |ot On er|ror has |
|000049f0| 0d 20 20 20 20 20 6f 63 | 63 75 72 72 65 64 2c 20 |. oc|curred, |
|00004a00| 69 74 20 72 65 74 75 72 | 6e 73 20 77 69 74 68 6f |it retur|ns witho|
|00004a10| 75 74 20 64 6f 69 6e 67 | 20 61 6e 79 74 68 69 6e |ut doing| anythin|
|00004a20| 67 2e 0d 20 20 6f 20 20 | 49 66 20 69 6d 6d 65 64 |g.. o |If immed|
|00004a30| 69 61 74 65 20 6d 6f 64 | 65 2c 20 64 6f 20 74 68 |iate mod|e, do th|
|00004a40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 3a 0d 20 20 6f |e follow|ing:. o|
|00004a50| 20 20 49 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 | If the| current|
|00004a60| 20 70 61 67 65 20 69 73 | 20 77 69 74 68 69 6e 20 | page is| within |
|00004a70| 74 68 65 20 72 61 6e 67 | 65 20 6f 66 20 70 61 67 |the rang|e of pag|
|00004a80| 65 73 20 74 6f 20 62 65 | 20 70 72 69 6e 74 65 64 |es to be| printed|
|00004a90| 2c 20 74 68 65 6e 20 0d | 20 20 20 20 20 63 61 75 |, then .| cau|
|00004aa0| 73 65 20 61 20 66 6f 72 | 6d 20 66 65 65 64 20 28 |se a for|m feed (|
|00004ab0| 75 6e 6c 65 73 73 20 6e | 6f 20 67 61 70 20 77 61 |unless n|o gap wa|
|00004ac0| 73 20 73 70 65 63 69 66 | 69 65 64 29 2e 0d 20 20 |s specif|ied).. |
|00004ad0| 6f 20 20 49 66 20 64 65 | 66 65 72 72 65 64 20 6d |o If de|ferred m|
|00004ae0| 6f 64 65 2c 20 64 6f 20 | 74 68 65 20 66 6f 6c 6c |ode, do |the foll|
|00004af0| 6f 77 69 6e 67 3a 0d 20 | 20 6f 20 20 49 66 20 74 |owing:. | o If t|
|00004b00| 68 65 72 65 20 77 61 73 | 20 6e 6f 20 70 69 63 74 |here was| no pict|
|00004b10| 75 72 65 20 67 65 6e 65 | 72 61 74 65 64 2c 20 74 |ure gene|rated, t|
|00004b20| 68 65 6e 20 64 6f 20 6e | 6f 74 68 69 6e 67 20 61 |hen do n|othing a|
|00004b30| 6e 64 20 6a 75 73 74 20 | 72 65 74 75 72 6e 2e 0d |nd just |return..|
|00004b40| 20 20 6f 20 20 43 61 6c | 6c 20 53 65 74 50 6f 72 | o Cal|l SetPor|
|00004b50| 74 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 73 70 |t to mak|e the sp|
|00004b60| 65 63 69 66 69 65 64 20 | 70 6f 72 74 20 74 68 65 |ecified |port the|
|00004b70| 20 63 75 72 72 65 6e 74 | 20 70 6f 72 74 2e 0d 20 | current| port.. |
|00004b80| 20 6f 20 20 44 6f 20 61 | 20 43 6c 6f 73 65 50 69 | o Do a| ClosePi|
|00004b90| 63 74 75 72 65 20 74 6f | 20 63 6c 6f 73 65 20 74 |cture to| close t|
|00004ba0| 68 65 20 70 69 63 74 75 | 72 65 2e 0d 0d 0d 50 72 |he pictu|re....Pr|
|00004bb0| 50 69 63 46 69 6c 65 20 | 20 20 20 20 20 20 20 20 |PicFile | |
|00004bc0| 20 20 20 20 20 20 20 28 | 24 31 32 31 33 29 0d 0d | (|$1213)..|
|00004bd0| 44 65 73 63 72 69 70 74 | 69 6f 6e 3a 0d 20 20 20 |Descript|ion:. |
|00004be0| 20 50 72 69 6e 74 73 20 | 61 20 70 69 63 74 75 72 | Prints |a pictur|
|00004bf0| 65 20 66 69 6c 65 20 67 | 65 6e 65 72 61 74 65 64 |e file g|enerated|
|00004c00| 20 69 6e 20 64 65 66 65 | 72 72 65 64 20 6d 6f 64 | in defe|rred mod|
|00004c10| 65 2e 0d 0d 50 61 73 73 | 65 64 3a 0d 20 20 20 20 |e...Pass|ed:. |
|00004c20| 50 72 69 6e 74 52 65 63 | 6f 72 64 48 61 6e 64 6c |PrintRec|ordHandl|
|00004c30| 65 20 20 20 20 4c 4f 4e | 47 20 20 20 20 20 20 20 |e LON|G |
|00004c40| 20 48 61 6e 64 6c 65 20 | 74 6f 20 74 68 65 20 70 | Handle |to the p|
|00004c50| 72 69 6e 74 20 72 65 63 | 6f 72 64 0d 20 20 20 20 |rint rec|ord. |
|00004c60| 50 72 69 6e 74 47 72 61 | 66 50 6f 72 74 50 74 72 |PrintGra|fPortPtr|
|00004c70| 20 20 20 20 20 4c 4f 4e | 47 20 20 20 20 20 20 20 | LON|G |
|00004c80| 20 50 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | Pointer| to the |
|00004c90| 47 72 61 66 50 6f 72 74 | 20 75 73 65 64 20 66 6f |GrafPort| used fo|
|00004ca0| 72 20 70 72 69 6e 74 69 | 6e 67 0d 20 20 20 20 53 |r printi|ng. S|
|00004cb0| 74 61 74 75 73 52 65 63 | 50 74 72 20 20 20 20 20 |tatusRec|Ptr |
|00004cc0| 20 20 20 20 4c 4f 4e 47 | 20 20 20 20 20 20 20 20 | LONG| |
|00004cd0| 50 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 70 |Pointer |to the p|
|00004ce0| 72 69 6e 74 65 72 20 73 | 74 61 74 75 73 20 72 65 |rinter s|tatus re|
|00004cf0| 63 6f 72 64 0d 0d 52 65 | 74 75 72 6e 65 64 3a 0d |cord..Re|turned:.|
|00004d00| 20 20 20 20 4e 6f 6e 65 | 0d 0d 50 65 72 66 6f 72 | None|..Perfor|
|00004d10| 6d 73 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ms the f|ollowing|
|00004d20| 3a 0d 20 20 6f 20 20 4c | 6f 6f 6b 73 20 61 74 20 |:. o L|ooks at |
|00004d30| 74 68 65 20 64 72 69 76 | 65 72 27 73 20 69 6e 74 |the driv|er's int|
|00004d40| 65 72 6e 61 6c 20 65 72 | 72 6f 72 20 76 61 6c 75 |ernal er|ror valu|
|00004d50| 65 20 61 6e 64 20 69 66 | 20 61 20 50 6f 72 74 20 |e and if| a Port |
|00004d60| 4e 6f 74 20 4f 6e 20 65 | 72 72 6f 72 20 68 61 73 |Not On e|rror has|
|00004d70| 20 0d 20 20 20 20 20 6f | 63 63 75 72 72 65 64 2c | . o|ccurred,|
|00004d80| 20 69 74 20 72 65 74 75 | 72 6e 73 20 77 69 74 68 | it retu|rns with|
|00004d90| 6f 75 74 20 64 6f 69 6e | 67 20 61 6e 79 74 68 69 |out doin|g anythi|
|00004da0| 6e 67 2e 0d 20 20 6f 20 | 20 49 66 20 69 6d 6d 65 |ng.. o | If imme|
|00004db0| 64 69 61 74 65 20 6d 6f | 64 65 2c 20 72 65 74 75 |diate mo|de, retu|
|00004dc0| 72 6e 20 77 69 74 68 6f | 75 74 20 64 6f 69 6e 67 |rn witho|ut doing|
|00004dd0| 20 61 6e 79 74 68 69 6e | 67 2e 0d 20 20 6f 20 20 | anythin|g.. o |
|00004de0| 49 66 20 64 65 66 65 72 | 72 65 64 20 6d 6f 64 65 |If defer|red mode|
|00004df0| 2c 20 74 68 65 6e 20 64 | 6f 20 74 68 65 20 66 6f |, then d|o the fo|
|00004e00| 6c 6c 6f 77 69 6e 67 3a | 0d 20 20 6f 20 20 49 66 |llowing:|. o If|
|00004e10| 20 74 68 65 20 65 72 72 | 6f 72 20 63 6f 64 65 20 | the err|or code |
|00004e20| 69 73 20 6e 6f 74 20 7a | 65 72 6f 20 28 65 72 72 |is not z|ero (err|
|00004e30| 6f 72 73 29 20 74 68 65 | 6e 20 64 69 73 70 6f 73 |ors) the|n dispos|
|00004e40| 65 20 6f 66 20 65 76 65 | 72 79 74 68 69 6e 67 2e |e of eve|rything.|
|00004e50| 0d 20 20 6f 20 20 50 75 | 74 20 75 70 20 61 6e 20 |. o Pu|t up an |
|00004e60| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 64 69 61 6c |informat|ion dial|
|00004e70| 6f 67 20 69 6e 64 69 63 | 61 74 69 6e 67 20 74 68 |og indic|ating th|
|00004e80| 61 74 20 70 72 69 6e 74 | 69 6e 67 20 69 73 20 6f |at print|ing is o|
|00004e90| 63 63 75 72 72 69 6e 67 | 2e 0d 20 20 6f 20 20 49 |ccurring|.. o I|
|00004ea0| 66 20 50 72 69 6e 74 47 | 72 61 66 50 6f 72 74 50 |f PrintG|rafPortP|
|00004eb0| 74 72 20 69 73 20 4e 49 | 4c 2c 20 63 72 65 61 74 |tr is NI|L, creat|
|00004ec0| 65 20 6f 6e 65 20 61 6e | 64 20 6d 61 6b 65 20 61 |e one an|d make a|
|00004ed0| 20 6e 6f 74 65 20 6f 66 | 20 69 74 2e 0d 20 20 6f | note of| it.. o|
|00004ee0| 20 20 43 61 6c 6c 20 4f | 70 65 6e 50 6f 72 74 20 | Call O|penPort |
|00004ef0| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 47 72 61 66 |to make |the Graf|
|00004f00| 50 6f 72 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |Port the| current|
|00004f10| 20 70 6f 72 74 2e 0d 20 | 20 6f 20 20 49 66 20 53 | port.. | o If S|
|00004f20| 74 61 74 75 73 52 65 63 | 50 74 72 20 69 73 20 4e |tatusRec|Ptr is N|
|00004f30| 49 4c 2c 20 75 73 65 20 | 61 6e 20 69 6e 74 65 72 |IL, use |an inter|
|00004f40| 6e 61 6c 20 6f 6e 65 2e | 0d 20 20 6f 20 20 49 6e |nal one.|. o In|
|00004f50| 69 74 69 61 6c 69 7a 65 | 20 74 68 65 20 73 74 61 |itialize| the sta|
|00004f60| 74 75 73 20 72 65 63 6f | 72 64 20 61 6e 64 20 74 |tus reco|rd and t|
|00004f70| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 70 |he numbe|r of cop|
|00004f80| 69 65 73 20 63 6f 75 6e | 74 65 72 2e 0d 20 20 6f |ies coun|ter.. o|
|00004f90| 20 20 49 66 20 74 68 65 | 20 69 64 6c 65 20 70 72 | If the| idle pr|
|00004fa0| 6f 63 20 69 6e 20 74 68 | 65 20 70 72 69 6e 74 20 |oc in th|e print |
|00004fb0| 72 65 63 6f 72 64 20 69 | 73 20 4e 49 4c 2c 20 70 |record i|s NIL, p|
|00004fc0| 6f 69 6e 74 20 74 6f 20 | 61 6e 20 69 6e 74 65 72 |oint to |an inter|
|00004fd0| 6e 61 6c 20 6f 6e 65 2e | 0d 20 20 6f 20 20 44 6f |nal one.|. o Do|
|00004fe0| 20 54 68 65 20 46 6f 6c | 6c 6f 77 69 6e 67 20 46 | The Fol|lowing F|
|00004ff0| 6f 72 20 45 61 63 68 20 | 43 6f 70 79 3a 0d 20 20 |or Each |Copy:. |
|00005000| 20 20 20 20 20 6f 20 20 | 43 61 6c 63 75 6c 61 74 | o |Calculat|
|00005010| 65 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e the nu|mber of |
|00005020| 62 61 6e 64 73 20 69 74 | 20 77 69 6c 6c 20 74 61 |bands it| will ta|
|00005030| 6b 65 20 74 6f 20 70 72 | 69 6e 74 20 6f 6e 65 20 |ke to pr|int one |
|00005040| 70 61 67 65 0d 20 20 20 | 20 20 20 20 20 20 20 61 |page. | a|
|00005050| 6e 64 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 74 68 |nd initi|alize th|
|00005060| 65 20 70 61 67 65 20 63 | 6f 75 6e 74 65 72 2e 0d |e page c|ounter..|
|00005070| 20 20 20 20 20 20 20 6f | 20 20 44 6f 20 54 68 65 | o| Do The|
|00005080| 20 46 6f 6c 6c 6f 77 69 | 6e 67 20 46 6f 72 20 45 | Followi|ng For E|
|00005090| 61 63 68 20 50 61 67 65 | 3a 0d 20 20 20 20 20 20 |ach Page|:. |
|000050a0| 20 20 20 20 20 20 6f 20 | 20 43 61 6c 6c 20 74 68 | o | Call th|
|000050b0| 65 20 69 64 6c 65 20 70 | 72 6f 63 65 64 75 72 65 |e idle p|rocedure|
|000050c0| 20 72 6f 75 74 69 6e 65 | 20 61 6e 64 20 69 6e 69 | routine| and ini|
|000050d0| 74 69 61 6c 69 7a 65 20 | 74 68 65 0d 20 20 20 20 |tialize |the. |
|000050e0| 20 20 20 20 20 20 20 20 | 20 20 20 62 61 6e 64 20 | | band |
|000050f0| 63 6f 75 6e 74 65 72 2e | 0d 20 20 20 20 20 20 20 |counter.|. |
|00005100| 20 20 20 20 20 6f 20 20 | 47 65 74 20 74 68 65 20 | o |Get the |
|00005110| 68 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 70 69 |handle t|o the pi|
|00005120| 63 74 75 72 65 20 61 73 | 73 6f 63 69 61 74 65 64 |cture as|sociated|
|00005130| 20 77 69 74 68 20 74 68 | 65 0d 20 20 20 20 20 20 | with th|e. |
|00005140| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | | current|
|00005150| 20 70 61 67 65 2e 0d 20 | 20 20 20 20 20 20 20 20 | page.. | |
|00005160| 20 20 20 6f 20 20 53 65 | 74 20 74 68 65 20 64 69 | o Se|t the di|
|00005170| 72 74 79 20 66 6c 61 67 | 20 69 6e 20 74 68 65 20 |rty flag| in the |
|00005180| 73 74 61 74 75 73 20 72 | 65 63 6f 72 64 20 74 6f |status r|ecord to|
|00005190| 20 46 41 4c 53 45 2e 0d | 20 20 20 20 20 20 20 20 | FALSE..| |
|000051a0| 20 20 20 20 6f 20 20 49 | 66 20 6d 61 6e 75 61 6c | o I|f manual|
|000051b0| 20 70 61 70 65 72 20 66 | 65 65 64 2c 20 70 75 74 | paper f|eed, put|
|000051c0| 20 75 70 20 61 20 64 69 | 61 6c 6f 67 20 61 6e 64 | up a di|alog and|
|000051d0| 20 77 61 69 74 20 66 6f | 72 0d 20 20 20 20 20 20 | wait fo|r. |
|000051e0| 20 20 20 20 20 20 20 20 | 20 61 20 72 65 73 70 6f | | a respo|
|000051f0| 6e 73 65 2e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |nse.. | |
|00005200| 20 6f 20 20 44 6f 20 54 | 68 65 20 46 6f 6c 6c 6f | o Do T|he Follo|
|00005210| 77 69 6e 67 20 46 6f 72 | 20 45 61 63 68 20 42 61 |wing For| Each Ba|
|00005220| 6e 64 3a 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |nd:. | |
|00005230| 20 20 20 20 20 6f 20 20 | 43 61 6c 6c 20 74 68 65 | o |Call the|
|00005240| 20 69 64 6c 65 20 70 72 | 6f 63 65 64 75 72 65 2e | idle pr|ocedure.|
|00005250| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005260| 20 20 6f 20 20 43 61 6c | 63 75 6c 61 74 65 20 74 | o Cal|culate t|
|00005270| 68 65 20 62 61 6e 64 20 | 72 65 63 74 61 6e 67 6c |he band |rectangl|
|00005280| 65 20 61 6e 64 20 75 70 | 64 61 74 65 0d 20 20 20 |e and up|date. |
|00005290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052a0| 20 69 63 75 72 62 61 6e | 64 20 77 69 74 68 20 74 | icurban|d with t|
|000052b0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 61 6e 64 20 |he curre|nt band |
|000052c0| 6e 75 6d 62 65 72 2e 0d | 20 20 20 20 20 20 20 20 |number..| |
|000052d0| 20 20 20 20 20 20 20 20 | 20 6f 20 20 43 61 6c 6c | | o Call|
|000052e0| 20 74 68 65 20 69 64 6c | 65 20 70 72 6f 63 20 61 | the idl|e proc a|
|000052f0| 67 61 69 6e 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |gain.. | |
|00005300| 20 20 20 20 20 20 20 6f | 20 20 53 65 74 20 74 68 | o| Set th|
|00005310| 65 20 69 6d 61 67 69 6e | 67 20 66 6c 61 67 20 69 |e imagin|g flag i|
|00005320| 6e 20 74 68 65 20 73 74 | 61 74 75 73 20 72 65 63 |n the st|atus rec|
|00005330| 6f 72 64 20 74 6f 20 54 | 52 55 45 2e 0d 20 20 20 |ord to T|RUE.. |
|00005340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 20 | | o |
|00005350| 20 43 61 6c 6c 20 49 6e | 69 74 50 6f 72 74 20 74 | Call In|itPort t|
|00005360| 6f 20 72 65 69 6e 69 74 | 69 61 6c 69 7a 65 20 74 |o reinit|ialize t|
|00005370| 68 65 20 70 6f 72 74 2e | 0d 20 20 20 20 20 20 20 |he port.|. |
|00005380| 20 20 20 20 20 20 20 20 | 20 20 6f 20 20 41 64 6a | | o Adj|
|00005390| 75 73 74 20 66 69 65 6c | 64 73 20 69 6e 20 74 68 |ust fiel|ds in th|
|000053a0| 65 20 70 6f 72 74 20 74 | 6f 20 63 61 75 73 65 20 |e port t|o cause |
|000053b0| 64 72 61 77 69 6e 67 20 | 69 6e 74 6f 0d 20 20 20 |drawing |into. |
|000053c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053d0| 20 74 68 65 20 62 61 6e | 64 20 62 75 66 66 65 72 | the ban|d buffer|
|000053e0| 2e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000053f0| 20 20 20 6f 20 20 41 64 | 6a 75 73 74 20 66 69 65 | o Ad|just fie|
|00005400| 6c 64 73 20 69 6e 20 74 | 68 65 20 6c 6f 63 61 74 |lds in t|he locat|
|00005410| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ion info|rmation |
|00005420| 66 69 65 6c 64 0d 20 20 | 20 20 20 20 20 20 20 20 |field. | |
|00005430| 20 20 20 20 20 20 20 20 | 20 20 6f 66 20 74 68 65 | | of the|
|00005440| 20 73 74 61 74 75 73 20 | 72 65 63 6f 72 64 20 61 | status |record a|
|00005450| 6e 64 20 63 61 6c 63 75 | 6c 61 74 65 20 74 68 65 |nd calcu|late the|
|00005460| 20 73 69 7a 69 6e 67 20 | 72 65 63 74 61 6e 67 6c | sizing |rectangl|
|00005470| 65 2e 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|00005480| 20 20 20 20 6f 20 20 43 | 61 6c 63 75 6c 61 74 65 | o C|alculate|
|00005490| 20 74 68 65 20 62 6f 75 | 6e 64 61 72 79 20 72 65 | the bou|ndary re|
|000054a0| 63 74 61 6e 67 6c 65 20 | 66 6f 72 20 74 68 65 20 |ctangle |for the |
|000054b0| 62 61 6e 64 20 61 6e 64 | 20 73 65 74 0d 20 20 20 |band and| set. |
|000054c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054d0| 20 74 68 65 20 70 6f 72 | 74 20 72 65 63 74 61 6e | the por|t rectan|
|000054e0| 67 6c 65 20 74 6f 20 69 | 74 2e 0d 20 20 20 20 20 |gle to i|t.. |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 20 20 53 | | o S|
|00005500| 65 74 20 74 68 65 20 43 | 6c 69 70 52 67 6e 20 61 |et the C|lipRgn a|
|00005510| 6e 64 20 74 68 65 20 56 | 69 73 52 67 6e 20 74 6f |nd the V|isRgn to|
|00005520| 20 74 68 65 20 73 69 7a | 69 6e 67 20 72 65 63 74 | the siz|ing rect|
|00005530| 61 6e 67 6c 65 2e 0d 20 | 20 20 20 20 20 20 20 20 |angle.. | |
|00005540| 20 20 20 20 20 20 20 20 | 6f 20 20 49 6e 69 74 69 | |o Initi|
|00005550| 61 6c 69 7a 65 20 74 68 | 65 20 62 61 6e 64 20 62 |alize th|e band b|
|00005560| 79 20 66 69 6c 6c 69 6e | 67 20 69 74 20 77 69 74 |y fillin|g it wit|
|00005570| 68 20 77 68 69 74 65 20 | 73 70 61 63 65 2e 0d 20 |h white |space.. |
|00005580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005590| 6f 20 20 43 61 6c 6c 20 | 44 72 61 77 50 69 63 74 |o Call |DrawPict|
|000055a0| 75 72 65 20 74 6f 20 64 | 72 61 77 20 74 68 65 20 |ure to d|raw the |
|000055b0| 70 69 63 74 75 72 65 20 | 69 6e 74 6f 20 74 68 65 |picture |into the|
|000055c0| 20 62 61 6e 64 27 73 0d | 20 20 20 20 20 20 20 20 | band's.| |
|000055d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 63 74 | | rect|
|000055e0| 61 6e 67 6c 65 2e 0d 20 | 20 20 20 20 20 20 20 20 |angle.. | |
|000055f0| 20 20 20 20 20 20 20 20 | 6f 20 20 44 6f 20 77 68 | |o Do wh|
|00005600| 61 74 65 76 65 72 20 69 | 73 20 6e 65 65 64 65 64 |atever i|s needed|
|00005610| 20 74 6f 20 70 72 69 6e | 74 20 74 68 65 20 70 69 | to prin|t the pi|
|00005620| 78 65 6c 20 69 6d 61 67 | 65 20 69 6e 20 74 68 65 |xel imag|e in the|
|00005630| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005640| 20 20 20 20 20 62 61 6e | 64 27 73 20 72 65 63 74 | ban|d's rect|
|00005650| 61 6e 67 6c 65 2e 0d 20 | 20 20 20 20 20 20 20 20 |angle.. | |
|00005660| 20 20 20 20 20 20 20 20 | 6f 20 20 43 6c 65 61 72 | |o Clear|
|00005670| 20 74 68 65 20 69 6d 61 | 67 69 6e 67 20 66 6c 61 | the ima|ging fla|
|00005680| 67 2e 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |g.. | |
|00005690| 20 20 20 20 6f 20 20 43 | 61 6c 63 75 6c 61 74 65 | o C|alculate|
|000056a0| 20 74 68 65 20 6e 65 78 | 74 20 62 61 6e 64 27 73 | the nex|t band's|
|000056b0| 20 70 6f 73 69 74 69 6f | 6e 2e 0d 20 20 20 20 20 | positio|n.. |
|000056c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 20 20 49 | | o I|
|000056d0| 6e 63 72 65 6d 65 6e 74 | 20 74 68 65 20 62 61 6e |ncrement| the ban|
|000056e0| 64 27 73 20 63 6f 75 6e | 74 65 72 20 61 6e 64 20 |d's coun|ter and |
|000056f0| 6c 6f 6f 70 20 62 61 63 | 6b 20 69 66 20 6e 6f 74 |loop bac|k if not|
|00005700| 20 64 6f 6e 65 2e 0d 20 | 20 20 20 20 20 20 20 20 | done.. | |
|00005710| 20 20 20 6f 20 20 49 66 | 20 47 41 50 20 77 61 73 | o If| GAP was|
|00005720| 20 73 70 65 63 69 66 69 | 65 64 2c 20 63 61 75 73 | specifi|ed, caus|
|00005730| 65 20 61 20 66 6f 72 6d | 20 66 65 65 64 2e 0d 20 |e a form| feed.. |
|00005740| 20 20 20 20 20 20 20 20 | 20 20 20 6f 20 20 49 6e | | o In|
|00005750| 63 72 65 6d 65 6e 74 20 | 74 68 65 20 70 61 67 65 |crement |the page|
|00005760| 20 63 6f 75 6e 74 20 74 | 6f 20 74 68 65 20 6e 65 | count t|o the ne|
|00005770| 78 74 20 70 61 67 65 20 | 61 6e 64 20 6c 6f 6f 70 |xt page |and loop|
|00005780| 20 62 61 63 6b 0d 20 20 | 20 20 20 20 20 20 20 20 | back. | |
|00005790| 20 20 20 20 20 69 66 20 | 6e 6f 74 20 64 6f 6e 65 | if |not done|
|000057a0| 2e 0d 20 20 20 20 20 20 | 20 6f 20 20 49 6e 63 72 |.. | o Incr|
|000057b0| 65 6d 65 6e 74 20 74 68 | 65 20 6e 75 6d 62 65 72 |ement th|e number|
|000057c0| 20 6f 66 20 63 6f 70 69 | 65 73 20 63 6f 75 6e 74 | of copi|es count|
|000057d0| 65 72 20 61 6e 64 20 6c | 6f 6f 70 20 62 61 63 6b |er and l|oop back|
|000057e0| 20 69 66 20 6e 6f 74 20 | 64 6f 6e 65 2e 0d 20 20 | if not |done.. |
|000057f0| 6f 20 20 46 72 65 65 20 | 61 6e 79 20 62 75 66 66 |o Free |any buff|
|00005800| 65 72 73 20 74 68 61 74 | 20 79 6f 75 20 6f 77 6e |ers that| you own|
|00005810| 20 61 6e 64 20 63 6c 6f | 73 65 20 74 68 65 20 70 | and clo|se the p|
|00005820| 6f 72 74 2e 0d 20 20 6f | 20 20 44 69 73 70 6f 73 |ort.. o| Dispos|
|00005830| 65 20 6f 66 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 |e of the| informa|
|00005840| 74 69 6f 6e 20 64 69 61 | 6c 6f 67 20 74 68 61 74 |tion dia|log that|
|00005850| 20 79 6f 75 20 70 75 74 | 20 75 70 2e 0d 20 20 6f | you put| up.. o|
|00005860| 20 20 44 69 73 70 6f 73 | 65 20 6f 66 20 65 61 63 | Dispos|e of eac|
|00005870| 68 20 70 69 63 74 75 72 | 65 20 69 6e 20 74 68 65 |h pictur|e in the|
|00005880| 20 70 69 63 74 75 72 65 | 20 6c 69 73 74 20 62 79 | picture| list by|
|00005890| 20 63 61 6c 6c 69 6e 67 | 20 4b 69 6c 6c 50 69 63 | calling| KillPic|
|000058a0| 74 75 72 65 2e 0d 20 20 | 6f 20 20 44 69 73 70 6f |ture.. |o Dispo|
|000058b0| 73 65 20 6f 66 20 74 68 | 65 20 70 69 63 74 75 72 |se of th|e pictur|
|000058c0| 65 20 6c 69 73 74 20 69 | 74 73 65 6c 66 2e 0d 20 |e list i|tself.. |
|000058d0| 20 6f 20 20 52 65 73 65 | 74 20 74 68 65 20 63 75 | o Rese|t the cu|
|000058e0| 72 73 6f 72 2e 0d 0d 0d | 50 72 45 72 72 6f 72 20 |rsor....|PrError |
|000058f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005900| 20 28 24 31 34 31 33 29 | 0d 0d 44 65 73 63 72 69 | ($1413)|..Descri|
|00005910| 70 74 69 6f 6e 3a 0d 20 | 20 20 20 47 65 74 73 20 |ption:. | Gets |
|00005920| 74 68 65 20 65 72 72 6f | 72 20 63 6f 64 65 20 66 |the erro|r code f|
|00005930| 72 6f 6d 20 74 68 65 20 | 6c 61 73 74 20 50 72 69 |rom the |last Pri|
|00005940| 6e 74 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 2e |nt Manag|er call.|
|00005950| 0d 0d 50 61 73 73 65 64 | 3a 0d 20 20 20 20 4e 6f |..Passed|:. No|
|00005960| 6e 65 0d 0d 52 65 74 75 | 72 6e 65 64 3a 0d 20 20 |ne..Retu|rned:. |
|00005970| 20 20 4c 61 73 74 45 72 | 72 6f 72 20 20 20 20 20 | LastEr|ror |
|00005980| 20 20 20 20 20 20 20 57 | 4f 52 44 20 20 20 20 20 | W|ORD |
|00005990| 20 20 20 52 65 73 75 6c | 74 20 63 6f 64 65 20 66 | Resul|t code f|
|000059a0| 72 6f 6d 20 6c 61 73 74 | 20 50 72 69 6e 74 20 4d |rom last| Print M|
|000059b0| 61 6e 61 67 65 72 20 63 | 61 6c 6c 0d 0d 50 65 72 |anager c|all..Per|
|000059c0| 66 6f 72 6d 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |forms th|e follow|
|000059d0| 69 6e 67 3a 0d 20 20 6f | 20 20 47 65 74 73 20 74 |ing:. o| Gets t|
|000059e0| 68 65 20 64 72 69 76 65 | 72 27 73 20 69 6e 74 65 |he drive|r's inte|
|000059f0| 72 6e 61 6c 20 65 72 72 | 6f 72 20 76 61 6c 75 65 |rnal err|or value|
|00005a00| 20 28 77 68 69 63 68 20 | 77 61 73 20 64 65 74 65 | (which |was dete|
|00005a10| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 20 6c 61 |rmined b|y the la|
|00005a20| 73 74 20 0d 20 20 20 20 | 20 64 72 69 76 65 72 20 |st . | driver |
|00005a30| 63 61 6c 6c 29 20 61 6e | 64 20 73 65 74 73 20 74 |call) an|d sets t|
|00005a40| 68 65 20 72 65 74 75 72 | 6e 20 70 61 72 61 6d 65 |he retur|n parame|
|00005a50| 74 65 72 20 4c 61 73 74 | 45 72 72 6f 72 20 74 6f |ter Last|Error to|
|00005a60| 20 69 74 2e 0d 0d 50 6f | 73 73 69 62 6c 65 20 45 | it...Po|ssible E|
|00005a70| 72 72 6f 72 73 3a 0d 6e | 6f 45 72 72 6f 72 20 20 |rrors:.n|oError |
|00005a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a90| 24 30 30 30 30 0d 50 72 | 41 62 6f 72 74 20 20 20 |$0000.Pr|Abort |
|00005aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 | | $|
|00005ab0| 30 30 38 30 20 20 20 20 | 20 20 20 49 6e 64 69 63 |0080 | Indic|
|00005ac0| 61 74 65 73 20 70 72 69 | 6e 74 20 6a 6f 62 20 77 |ates pri|nt job w|
|00005ad0| 61 73 20 61 62 6f 72 74 | 65 64 0d 20 20 20 20 20 |as abort|ed. |
|00005ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005af0| 20 20 20 20 24 31 33 30 | 31 20 20 20 20 20 20 20 | $130|1 |
|00005b00| 49 6e 64 69 63 61 74 65 | 73 20 6d 69 73 73 69 6e |Indicate|s missin|
|00005b10| 67 20 64 72 69 76 65 72 | 73 0d 20 20 20 20 20 20 |g driver|s. |
|00005b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b30| 20 20 20 24 31 33 30 32 | 20 20 20 20 20 20 20 49 | $1302| I|
|00005b40| 6e 64 69 63 61 74 65 73 | 20 50 6f 72 74 20 4e 6f |ndicates| Port No|
|00005b50| 74 20 4f 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |t On. | |
|00005b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 24 31 | | $1|
|00005b70| 33 30 33 20 20 20 20 20 | 20 20 49 6e 64 69 63 61 |303 | Indica|
|00005b80| 74 65 73 20 4e 6f 20 50 | 72 69 6e 74 20 52 65 63 |tes No P|rint Rec|
|00005b90| 6f 72 64 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ord. | |
|00005ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 31 33 | | $13|
|00005bb0| 30 36 20 20 20 20 20 20 | 20 49 6e 64 69 63 61 74 |06 | Indicat|
|00005bc0| 65 73 20 50 41 50 20 43 | 6f 6e 6e 65 63 74 69 6f |es PAP C|onnectio|
|00005bd0| 6e 20 4e 6f 74 20 4d 61 | 64 65 0d 20 20 20 20 20 |n Not Ma|de. |
|00005be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bf0| 20 20 20 20 24 31 33 30 | 37 20 20 20 20 20 20 20 | $130|7 |
|00005c00| 49 6e 64 69 63 61 74 65 | 73 20 52 65 61 64 2f 57 |Indicate|s Read/W|
|00005c10| 72 69 74 65 20 50 41 50 | 20 45 72 72 6f 72 0d 20 |rite PAP| Error. |
|00005c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c30| 20 20 20 20 20 20 20 20 | 24 31 33 30 38 20 20 20 | |$1308 |
|00005c40| 20 20 20 20 49 6e 64 69 | 63 61 74 65 73 20 50 72 | Indi|cates Pr|
|00005c50| 69 6e 74 65 72 20 43 6f | 6e 6e 65 63 74 69 6f 6e |inter Co|nnection|
|00005c60| 20 46 61 69 6c 65 64 0d | 0d 0d 50 72 53 65 74 45 | Failed.|..PrSetE|
|00005c70| 72 72 6f 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |rror | |
|00005c80| 20 20 20 28 24 31 35 31 | 33 29 0d 0d 44 65 73 63 | ($151|3)..Desc|
|00005c90| 72 69 70 74 69 6f 6e 3a | 0d 20 20 20 20 53 65 74 |ription:|. Set|
|00005ca0| 73 20 74 68 65 20 65 72 | 72 6f 72 20 76 61 6c 75 |s the er|ror valu|
|00005cb0| 65 2e 0d 0d 50 61 73 73 | 65 64 3a 0d 20 20 20 20 |e...Pass|ed:. |
|00005cc0| 45 72 72 6f 72 4e 75 6d | 62 65 72 20 20 20 20 20 |ErrorNum|ber |
|00005cd0| 20 20 20 20 20 57 4f 52 | 44 20 20 20 20 20 20 20 | WOR|D |
|00005ce0| 20 45 72 72 6f 72 20 6e | 75 6d 62 65 72 20 74 6f | Error n|umber to|
|00005cf0| 20 62 65 20 73 65 74 0d | 0d 52 65 74 75 72 6e 65 | be set.|.Returne|
|00005d00| 64 3a 0d 20 20 20 20 4e | 6f 6e 65 0d 0d 50 65 72 |d:. N|one..Per|
|00005d10| 66 6f 72 6d 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |forms th|e follow|
|00005d20| 69 6e 67 3a 0d 20 20 6f | 20 20 53 65 74 73 20 74 |ing:. o| Sets t|
|00005d30| 68 65 20 64 72 69 76 65 | 72 27 73 20 69 6e 74 65 |he drive|r's inte|
|00005d40| 72 6e 61 6c 20 65 72 72 | 6f 72 20 76 61 6c 75 65 |rnal err|or value|
|00005d50| 20 74 6f 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 | to the |value of|
|00005d60| 20 74 68 65 20 70 61 73 | 73 65 64 20 0d 20 20 20 | the pas|sed . |
|00005d70| 20 20 45 72 72 6f 72 4e | 75 6d 62 65 72 20 70 61 | ErrorN|umber pa|
|00005d80| 72 61 6d 65 74 65 72 2e | 0d 0d 0d 47 65 74 44 65 |rameter.|...GetDe|
|00005d90| 76 69 63 65 4e 61 6d 65 | 20 20 20 20 20 20 20 20 |viceName| |
|00005da0| 20 20 20 20 28 24 31 37 | 31 33 29 0d 0d 44 65 73 | ($17|13)..Des|
|00005db0| 63 72 69 70 74 69 6f 6e | 3a 0d 20 20 20 20 55 73 |cription|:. Us|
|00005dc0| 65 64 20 61 73 20 61 20 | 63 6f 6d 6d 75 6e 69 63 |ed as a |communic|
|00005dd0| 61 74 69 6f 6e 73 20 74 | 6f 6f 6c 20 62 65 74 77 |ations t|ool betw|
|00005de0| 65 65 6e 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 |een the |printer |
|00005df0| 64 72 69 76 65 72 20 61 | 6e 64 20 70 6f 72 74 20 |driver a|nd port |
|00005e00| 64 72 69 76 65 72 2e 0d | 0d 50 61 73 73 65 64 3a |driver..|.Passed:|
|00005e10| 0d 20 20 20 20 4e 6f 6e | 65 0d 0d 52 65 74 75 72 |. Non|e..Retur|
|00005e20| 6e 65 64 3a 0d 20 20 20 | 20 4e 6f 6e 65 0d 0d 50 |ned:. | None..P|
|00005e30| 65 72 66 6f 72 6d 73 20 | 74 68 65 20 66 6f 6c 6c |erforms |the foll|
|00005e40| 6f 77 69 6e 67 3a 0d 20 | 20 6f 20 20 43 61 6c 6c |owing:. | o Call|
|00005e50| 73 20 74 68 65 20 70 6f | 72 74 20 64 72 69 76 65 |s the po|rt drive|
|00005e60| 72 20 72 6f 75 74 69 6e | 65 20 50 72 44 65 76 50 |r routin|e PrDevP|
|00005e70| 72 43 68 61 6e 67 65 64 | 20 77 69 74 68 20 74 68 |rChanged| with th|
|00005e80| 65 20 70 72 69 6e 74 65 | 72 20 6e 61 6d 65 20 61 |e printe|r name a|
|00005e90| 73 20 0d 20 20 20 20 20 | 69 6e 70 75 74 2e 20 20 |s . |input. |
|00005ea0| 54 68 69 73 20 69 73 20 | 6e 65 63 65 73 73 61 72 |This is |necessar|
|00005eb0| 79 20 66 6f 72 20 64 72 | 69 76 65 72 73 20 74 68 |y for dr|ivers th|
|00005ec0| 61 74 20 77 69 6c 6c 20 | 77 6f 72 6b 20 6f 76 65 |at will |work ove|
|00005ed0| 72 20 41 70 70 6c 65 54 | 61 6c 6b 2e 20 20 54 68 |r AppleT|alk. Th|
|00005ee0| 65 20 0d 20 20 20 20 20 | 6e 61 6d 65 20 70 61 73 |e . |name pas|
|00005ef0| 73 65 64 20 61 73 20 74 | 68 65 20 70 61 72 61 6d |sed as t|he param|
|00005f00| 65 74 65 72 20 74 6f 20 | 50 72 44 65 76 50 72 43 |eter to |PrDevPrC|
|00005f10| 68 61 6e 67 65 64 20 73 | 68 6f 75 6c 64 20 62 65 |hanged s|hould be|
|00005f20| 20 77 68 61 74 20 41 70 | 70 6c 65 54 61 6c 6b 20 | what Ap|pleTalk |
|00005f30| 0d 20 20 20 20 20 77 69 | 6c 6c 20 75 73 65 20 69 |. wi|ll use i|
|00005f40| 6e 20 61 6e 20 4e 42 50 | 4c 6f 6f 6b 75 70 20 73 |n an NBP|Lookup s|
|00005f50| 69 74 75 61 74 69 6f 6e | 3b 20 66 6f 72 20 41 70 |ituation|; for Ap|
|00005f60| 70 6c 65 54 61 6c 6b 2c | 20 73 75 63 68 20 61 20 |pleTalk,| such a |
|00005f70| 6e 61 6d 65 20 73 68 6f | 75 6c 64 20 0d 20 20 20 |name sho|uld . |
|00005f80| 20 20 66 6f 6c 6c 6f 77 | 20 4e 42 50 20 63 6f 6e | follow| NBP con|
|00005f90| 76 65 6e 74 69 6f 6e 73 | 2e 0d 0d 0d 50 72 44 72 |ventions|....PrDr|
|00005fa0| 69 76 65 72 56 65 72 20 | 20 20 20 20 20 20 20 20 |iverVer | |
|00005fb0| 20 20 20 20 20 28 24 32 | 33 31 33 29 0d 0d 44 65 | ($2|313)..De|
|00005fc0| 73 63 72 69 70 74 69 6f | 6e 3a 0d 20 20 20 20 52 |scriptio|n:. R|
|00005fd0| 65 74 75 72 6e 73 20 74 | 68 65 20 76 65 72 73 69 |eturns t|he versi|
|00005fe0| 6f 6e 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |on numbe|r of the|
|00005ff0| 20 63 75 72 72 65 6e 74 | 6c 79 20 69 6e 73 74 61 | current|ly insta|
|00006000| 6c 6c 65 64 20 70 72 69 | 6e 74 65 72 20 64 72 69 |lled pri|nter dri|
|00006010| 76 65 72 2e 0d 0d 50 61 | 73 73 65 64 3a 0d 20 20 |ver...Pa|ssed:. |
|00006020| 20 20 57 6f 72 64 73 70 | 61 63 65 20 20 20 20 20 | Wordsp|ace |
|00006030| 20 20 20 20 20 20 20 57 | 4f 52 44 20 20 20 20 20 | W|ORD |
|00006040| 20 20 20 53 70 61 63 65 | 20 66 6f 72 20 72 65 73 | Space| for res|
|00006050| 75 6c 74 73 0d 0d 52 65 | 74 75 72 6e 65 64 3a 0d |ults..Re|turned:.|
|00006060| 20 20 20 20 76 65 72 73 | 69 6f 6e 49 6e 66 6f 20 | vers|ionInfo |
|00006070| 20 20 20 20 20 20 20 20 | 20 57 4f 52 44 20 20 20 | | WORD |
|00006080| 20 20 20 20 20 50 72 69 | 6e 74 65 72 20 64 72 69 | Pri|nter dri|
|00006090| 76 65 72 27 73 20 76 65 | 72 73 69 6f 6e 20 6e 75 |ver's ve|rsion nu|
|000060a0| 6d 62 65 72 0d 0d 50 65 | 72 66 6f 72 6d 73 20 74 |mber..Pe|rforms t|
|000060b0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0d 20 20 |he follo|wing:. |
|000060c0| 6f 20 20 47 65 74 73 20 | 74 68 65 20 69 6e 74 65 |o Gets |the inte|
|000060d0| 72 6e 61 6c 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d |rnal ver|sion num|
|000060e0| 62 65 72 20 6f 66 20 74 | 68 65 20 70 72 69 6e 74 |ber of t|he print|
|000060f0| 65 72 20 64 72 69 76 65 | 72 20 61 6e 64 20 72 65 |er drive|r and re|
|00006100| 74 75 72 6e 73 20 69 74 | 20 6f 6e 20 0d 20 20 20 |turns it| on . |
|00006110| 20 20 74 68 65 20 73 74 | 61 63 6b 20 61 74 20 76 | the st|ack at v|
|00006120| 65 72 73 69 6f 6e 49 6e | 66 6f 2e 0d 0d 4e 6f 74 |ersionIn|fo...Not|
|00006130| 65 3a 20 20 54 68 65 20 | 69 6e 74 65 72 6e 61 6c |e: The |internal|
|00006140| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|00006150| 69 73 20 73 74 6f 72 65 | 64 20 0d 20 20 20 20 20 |is store|d . |
|00006160| 20 20 6d 61 6a 6f 72 20 | 62 79 74 65 2c 20 6d 69 | major |byte, mi|
|00006170| 6e 6f 72 20 62 79 74 65 | 20 28 69 2e 65 2e 2c 20 |nor byte| (i.e., |
|00006180| 24 30 31 30 33 20 72 65 | 70 72 65 73 65 6e 74 73 |$0103 re|presents|
|00006190| 20 76 65 72 73 69 6f 6e | 20 31 2e 33 29 0d 0d 0d | version| 1.3)...|
|000061a0| 50 72 47 65 74 50 72 69 | 6e 74 65 72 53 70 65 63 |PrGetPri|nterSpec|
|000061b0| 73 20 20 20 20 20 20 20 | 20 28 24 31 38 31 33 29 |s | ($1813)|
|000061c0| 0d 0d 44 65 73 63 72 69 | 70 74 69 6f 6e 3a 0d 20 |..Descri|ption:. |
|000061d0| 20 20 20 52 65 74 75 72 | 6e 73 20 74 68 65 20 74 | Retur|ns the t|
|000061e0| 79 70 65 20 6f 66 20 70 | 72 69 6e 74 65 72 20 61 |ype of p|rinter a|
|000061f0| 6e 64 20 74 68 65 20 70 | 72 69 6e 74 65 72 27 73 |nd the p|rinter's|
|00006200| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 73 | charact|eristics|
|00006210| 2e 0d 0d 50 61 73 73 65 | 64 3a 0d 20 20 20 20 57 |...Passe|d:. W|
|00006220| 6f 72 64 73 70 61 63 65 | 20 20 20 20 20 20 20 20 |ordspace| |
|00006230| 20 20 20 20 57 4f 52 44 | 20 20 20 20 20 20 20 20 | WORD| |
|00006240| 53 70 61 63 65 20 66 6f | 72 20 72 65 73 75 6c 74 |Space fo|r result|
|00006250| 73 0d 20 20 20 20 57 6f | 72 64 73 70 61 63 65 20 |s. Wo|rdspace |
|00006260| 20 20 20 20 20 20 20 20 | 20 20 20 57 4f 52 44 20 | | WORD |
|00006270| 20 20 20 20 20 20 20 53 | 70 61 63 65 20 66 6f 72 | S|pace for|
|00006280| 20 72 65 73 75 6c 74 73 | 0d 0d 52 65 74 75 72 6e | results|..Return|
|00006290| 65 64 3a 0d 20 20 20 20 | 50 72 69 6e 74 65 72 54 |ed:. |PrinterT|
|000062a0| 79 70 65 20 20 20 20 20 | 20 20 20 20 20 57 4f 52 |ype | WOR|
|000062b0| 44 20 20 20 20 20 20 20 | 20 30 20 3d 20 75 6e 64 |D | 0 = und|
|000062c0| 65 66 69 6e 65 64 0d 20 | 20 20 20 20 20 20 20 20 |efined. | |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 20 3d 20 | | 1 = |
|000062f0| 49 6d 61 67 65 57 72 69 | 74 65 72 20 6f 72 20 49 |ImageWri|ter or I|
|00006300| 6d 61 67 65 57 72 69 74 | 65 72 20 49 49 0d 20 20 |mageWrit|er II. |
|00006310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006330| 20 20 20 32 20 3d 20 49 | 6d 61 67 65 57 72 69 74 | 2 = I|mageWrit|
|00006340| 65 72 20 4c 51 0d 20 20 | 20 20 20 20 20 20 20 20 |er LQ. | |
|00006350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006360| 20 20 20 20 20 20 20 20 | 20 20 20 33 20 3d 20 4c | | 3 = L|
|00006370| 61 73 65 72 57 72 69 74 | 65 72 20 66 61 6d 69 6c |aserWrit|er famil|
|00006380| 79 20 28 65 78 63 65 70 | 74 20 49 49 53 43 29 0d |y (excep|t IISC).|
|00006390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063b0| 20 20 20 20 20 34 20 3d | 20 45 70 73 6f 6e 0d 20 | 4 =| Epson. |
|000063c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063e0| 20 20 20 20 24 38 30 30 | 31 20 3d 20 67 65 6e 65 | $800|1 = gene|
|000063f0| 72 69 63 20 64 6f 74 20 | 6d 61 74 72 69 78 20 70 |ric dot |matrix p|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.